Jump to content

Image conversion with GD


raymond_feliciano

Recommended Posts

I need a little help. I am trying to convert images taken from an upload form and convert them to jpg and then upload it to my directory. I tried GD but I cant figure out how to upload the converted file. I also tried using ffmpeg to convert the file but I am only able to do it with videos, I cant find the parameters for image to image conversion. Any input would be appreciated. Thanks

Link to comment
https://forums.phpfreaks.com/topic/252527-image-conversion-with-gd/
Share on other sites

I'm not all that familiar with GD, but this might help you:

 

http://stackoverflow.com/questions/22259/how-do-i-resize-and-convert-an-uploaded-image-to-a-png-using-gd

 

Note they're converting to a png, but you should be able to accomplish the same thing by using imagejpeg instead of imagepng under "output to a temp file".

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.