Search the Community
Showing results for tags 'imagejpeg'.
-
I'm trying to write a script to demenostrate JPG lossy compression. The idea is to start with an image called copy-0000.jpg that is at 100% quality then save it 100 times at 50 quality renaming the copies as it goes. So each copy will be half the quality of the previous. $j = 0; for ($i = 0; $i <...
-
I want to save a caption to a file but for some reason it will not save the file ? here is the code that i am working with ... $directory = "'useruploadedphotos/53346044e7cb6.jpg'"; imagejpeg($jpg_image, $directory);
-
Spent the day trying to figure out why GD library 2.0 imagejpeg($resource_id,NULL,$quality); wouldn't output my images to the browser after updating PHP from 5.3 to 5.4. Allow me to hopefully save you the trouble. If you've enabled GD library and using an external script to generate image file...