Forum Moderators: coopster

Message Too Old, No Replies

converting an jpg file into non-progressive using GD

         

lindajames

6:16 pm on Apr 28, 2005 (gmt 0)

10+ Year Member



hi everyone,

i have a file on my server called image.jpg and its saved as progressive jpeg, can anyone tell me how i can use php and GD to save that as a non-progressive format and save it as image2.jpg without overwriting the existing one?

many thanx in advanced for any help

cheers

lindajames

10:59 pm on Apr 29, 2005 (gmt 0)

10+ Year Member



does anyone have any idea how this can be achieved?

jatar_k

11:17 pm on Apr 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would imagine you use imagecreatefromjpeg [php.net] to open the existing jpg

then maybe imagecreatetruecolor [php.net] to make a new image
then maybe imageinterlace [php.net] to turn off the interlace bit
then maybe imagejpeg [php.net] to save the new image

just a guess after a few quick searches on php.net