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

(08-24-2016, 08:17 PM)Diederik Wrote: 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.

I am using PHP to create a dynamic SVG chart and then using ImageMagick to convert the chart to PNG. The image can then easily be emailed.

Is there a similar PHP conversion function?
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB