Closed (fixed)
Project:
Image Resize Filter
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2009 at 23:30 UTC
Updated:
3 Dec 2009 at 07:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchThe problem here is that Image Resize Filter isn't able to determine what format the images are from looking at the URL. If the image were to end with png/gif/jpg it would work because Image Resize Filter knows what format to save in.
This problem should still be fixable, it'll just require a rather different approach for determining how to identify images and what to name the resized versions.
Comment #2
dangrice commentedHmm.
Most of the links I need lack image extensions.. alas. I wasn't even concerned as much about resizing as having a local file copied to prevent against dead links..
Comment #3
quicksketchThis patch mostly fixes the problem. When working with images without extensions, this will attempt to read the MIME-type information and create an extension from that. It works just fine for your second sample image, but not the first. I think it has to do with the Bloomberg system not setting all the necessary headers for PHP's getimagesize() function to read the image properly. The image from Akamai works great though.
I think it'd be good to commit this anyway, since it increases the number of situations that Image Resize Filter can handle, but not quite all of them.
Comment #4
quicksketchI've committed this patch as it will make most images without extensions work. I've opened a secondary issue at #633676: Some external images without extensions do not resize to handle external images that send back improper headers (such as the Bloomberg URL).
Comment #5
dangrice commentedThanks!