Hello, I am currently trying to change the format of an uploaded image. I have currently got it to resize perfectly fine but using the following code I just cant seem to get it to work. For example if I uplaod a jpeg and want to change it to a gif. MagickSetImageFormat($resource, 'GIF' ); MagickWriteImage( $resource, $path ); PHP: But as I say its not working. Any help would be great. Thank you - Methok
i was having the same exact problem, and i think i succeeded by doing it this way: exec("convert image.jpg image.png");Â not quiet sure cause it was long time ago but try it and let me know what happened
OK, Seems its creating an file where its meant to. Its changing the extension as its meant to. Only the file size for the new file is 0. So, im going to run head first into a wall, haha. Been at it too long now.
Problem solved. Thank you mushu. It was your method that helped. Just needed have time away from it and have a coffee to see my mistake. Thank you.
i knew it that it should have worked. I was not able to try it at home yesterday cause i dont have php at home so i was just guessing on the solution. Now when i came to work i was playing with it and realized that it worked for me and now i just loged in to tell you that its solved and saw that you made it too. good luck than i am happy that i helped