Search the Community
Showing results for tags 'imagecreatefromjpeg'.
-
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 < 100; $i ++) { $j ++; $fileToCompress = imagecreatefromjpeg('copy-' . sprintf('%04d',$i) . '.jpg'); imagejpeg($fileToCompress, 'copy-' . sprintf('%04d',$j) . '.jpg', 50); imagedestroy($fileToCompress); } But I wind up with 100 copies of the original, each at 50 quality. I am open for ideas.
-
I made facebook application by heroku.com...But I cannot use imagecreatefromjpeg() function and other function which connect to .jpeg format I know heroku not have JPEG support... I also saw this posts... https://github.com/alkhoo/heroku-cedar-php-extension/issues/1 https://github.com/alkhoo/heroku-cedar-php-extension but still i have not Success , I am new in heroku... I need **detail** tutorial about this... Can anybody help me ?
-
- php-support
- imagecreatefromjpeg
- (and 3 more)