Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] CI 3.1.0 ImageMagick not working
#8

I'm not using the codeigniter image manipulation library myself so I dont know if it can help you with the conversion. But it's so easy in regular php:
PHP Code:
function png2jpg($originalFile$outputFile$quality) {
 
   $image imagecreatefrompng($originalFile);
 
   imagejpeg($image$outputFile$quality);
 
   imagedestroy($image);

I would not want to be dependent of the availability of the exec command in my application since it is usualy turned off on a shared hosting server.
Reply


Messages In This Thread
RE: [SOLVED] CI 3.1.0 ImageMagick not working - by Diederik - 08-24-2016, 08:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB