Needs work
Project:
Image Resize Filter
Version:
6.x-1.13
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2012 at 12:31 UTC
Updated:
2 May 2012 at 16:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
pizzapotamus commentedThe very minor change we're using although I could see it needing to be an optional feature.
Comment #2
quicksketchThis patch doesn't actually change the format of images, it just changes the extension.
UPDATE: Oh, nope looks like I'm mistaken. http://api.drupal.org/image_gd_save will indeed convert an image based on its name alone. Not sure about this as an option personally.
Comment #3
pizzapotamus commentedThat's what I would have thought except when I didn't immediately see anything setting the image format in the module code I figured what the heck it's quick and easy to see if it just goes based on the extension and on our server it does....
The following file was generated with just the above patch
http://www.austinquinceanera.com/sites/default/files/resize/attach/lagli... and the original image was
http://www.austinquinceanera.com/sites/default/files/attach/laglitter-11... Based on the file sizes and more importantly the magic numbers(as read by file) it's clearly changed from png to jpeg
Comment #4
pizzapotamus commentedFor our usage going to jpeg is keeping in line with what I see as the main reason for the module, using the "right" image instead of whatever the user has uploaded and keeping bandwidth down. In our case the user simply can not or will not be bothered to do any manual image manipulation simply uploading the images in whatever size and format they come, if we could rely on them uploading images in the optimal format we also probably could rely on them using any of the other tools we'd previously provided for image resizing. If this module didn't already exist(thankfully it does) the input filter I'd currently be writing would have ended up defaulting to jpeg.
It's something I'd be willing to write a proper patch for with an interface but wanted to see if said patch would be welcome first.