CodeIgniter Forums
image_save_gd: choose type criteria - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: image_save_gd: choose type criteria (/showthread.php?tid=72233)



image_save_gd: choose type criteria - omarboti - 11-25-2018

Hi. (Sorry about my english; spanish speaker).

If i'm right, in image_lib library, when you save a croped/resized/watermarked image, its saved considering base image file, regardless new_image filename.

For ex. if i get a gradient.png, apply text_watermark and want to save it like new.jpg, the new file will have that name, but its contents will be for png (because it's saved with imagepng).

This behaviour wasn't what i expected.

What do you think? It could be considered a bug?

Is there any workarround without transforming my gradient file or the result, outside codeigniter?

Thanks. Omar