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.
I have opened an request for a new feature at imagecache_actions that requires a change to imageapi.
It would be useful if presets had the ability to override the JPEG quality option. Imagecache and imageapi would have to modifed. here are the patches for imageapi.
Comment | File | Size | Author |
---|---|---|---|
#5 | imageapi_924304.patch | 2.45 KB | drewish |
#1 | imageapi_924304.patch | 1.06 KB | drewish |
imageapi_gd.module.patch | 861 bytes | cybis | |
imageapi.module.patch | 764 bytes | cybis |
Comments
Comment #1
drewish CreditAttribution: drewish commentedWhat do you think about doing it this way? Since the setting is GD specific?
Comment #2
drewish CreditAttribution: drewish commentedMight make sense to merge this with #817290: Quality param.
Comment #3
cybis CreditAttribution: cybis commented@drewish, this is great!
Your solution is simple and elegant. It makes what I’m trying to accomplish here much easier: #924270: imagecache_convert jpeg quality override.
Thank you.
Closing this issue and continuing the conversation here: #817290: Quality param
Comment #4
cybis CreditAttribution: cybis commentedActually reopening this issue since patch in #1 here is different from #2 at #817290: Quality param.
Patch #1 here works great for me.
Comment #5
drewish CreditAttribution: drewish commentedmerging #817290: Quality param over here.
Comment #6
cybis CreditAttribution: cybis commentedPatch #5 works great.
Its 'companion' patch over at Imagecahe Action has been rolled in the 6.x-2.x-dev release #924270: imagecache_convert jpeg quality override. But that functionality doesn’t work without the patch here and it’s causing confusion here #1113530: Changing jpg quality does not seem to work.
Any plans to roll patch #5 in?
Comment #7
cybis CreditAttribution: cybis commentedComment #8
marcoka CreditAttribution: marcoka commentedanoyne knows if that has made it into the d7 version of imageapi?
could it be that a d7 port is not possible without hacking core image module? i did not find a hook that would make quality changes possible.
Comment #9
j0rd CreditAttribution: j0rd commentedI need this patch as well.
Comment #10
Bensbury CreditAttribution: Bensbury commentedThis for D7 would be very handy.