Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.117.71.102
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
stph /
libgd-gd-2.2.3 /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
CMakeLists.txt
1
KB
-rwxr-xr-x
arc.c
591
B
-rwxr-xr-x
copyrotated.c
1.81
KB
-rwxr-xr-x
crop.c
1.31
KB
-rwxr-xr-x
flip.c
1.18
KB
-rwxr-xr-x
gif.c
1.01
KB
-rwxr-xr-x
nnquant.c
1.15
KB
-rwxr-xr-x
noIcon.pic
62
KB
-rwxr-xr-x
noIcon.sgi
65.04
KB
-rwxr-xr-x
noIcon.tga
150.08
KB
-rwxr-xr-x
noIconAlpha.tga
150.08
KB
-rwxr-xr-x
resize.c
1.02
KB
-rwxr-xr-x
test_crop_threshold.png
7.73
KB
-rwxr-xr-x
tgaread.c
975
B
-rwxr-xr-x
tiffread.c
1.11
KB
-rwxr-xr-x
windows.c
7.3
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : flip.c
/* $Id$ */ #include "gd.h" #include <stdio.h> #include <stdlib.h> gdImagePtr loadImage(const char *name) { FILE *fp; gdImagePtr im; fp = fopen(name, "rb"); if (!fp) { fprintf(stderr, "Can't open jpeg file\n"); return NULL; } im = gdImageCreateFromJpeg(fp); fclose(fp); return im; } int savePngImage(gdImagePtr im, const char *name) { FILE *fp; fp = fopen(name, "wb"); if (!fp) { fprintf(stderr, "Can't save png image fromtiff.png\n"); return 0; } gdImagePng(im, fp); fclose(fp); return 1; } int main(int argc, char **arg) { gdImagePtr im; int returncode = 0; if (argc < 2) { fprintf(stderr, "Usage: flip [filename.png]\n"); return 1; } im = loadImage(arg[1]); if (!im) goto error; gdImageFlipHorizontal(im); if (!savePngImage(im, "flip_horizontal.png")) { goto error; } gdImageDestroy(im); im = loadImage(arg[1]); if (!im) goto error; gdImageFlipVertical(im); if (!savePngImage(im, "flip_vertical.png")) { goto error; } gdImageDestroy(im); im = loadImage(arg[1]); if (!im) goto error; gdImageFlipBoth(im); if (!savePngImage(im, "flip_both.png")) { goto error; } gdImageDestroy(im); goto done; error: returncode = 1; done: return returncode; }
Close