Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
PNGfix doesn't work with PNGs in imagefields, because those get a query string appended to prevent browser caching.
Comment | File | Size | Author |
---|---|---|---|
#2 | imagefield.patch | 709 bytes | matt2000 |
Comments
Comment #1
joachim CreditAttribution: joachim commentedOnly two solutions I found:
- hack the pngfix JS script file to use *= rather than $=. so this line
becomes
- override theme_imagefield_image() so the query string doesn't get added to the images.
Comment #2
matt2000 CreditAttribution: matt2000 commentedJoachim's fix works. Here it is in patch form.
Comment #3
joachim CreditAttribution: joachim commentedUnfortunately, changing the pngfix.js script means that we'd be forking an external library... :/
Comment #4
matt2000 CreditAttribution: matt2000 commentedIt's not an external library. If it were, it wouldn't be permitted to be hosted on drupal.org CVS ;-)
Or, you could say, we've already forked it by hosting it here.
The fork is necessary to make it functional with drupal, and conveniently makes hosting it here in line with d.o policy.