Hi,

Problem:
Manual Crop by default takes the top row weight position when applying the effect to an image style no matter where it is set in the list.

Impact:
This prevents the ability to reorder it with other actions e.g. the 'define canvas' action from the ImageCache Actions module should allow the background canvas colour to be changed but needs to be applied first. However it cannot be set as the first action which it needs to be in order to apply the canvas colour. Being able to do this should help resolve the common issue raised on Drupal's default black canvas applied to cropped images but is being prevented by Manual Crop action defaulting to first action.

Solution:
Allow the Manual Crop row weight to be reordered with other actions.

Thanks for any help to get this resolved.

CommentFileSizeAuthor
#4 force_effect_order-2511118-4.patch2.49 KBjstoller

Comments

matthijs’s picture

The reason that Manual Crop enforces itself to be the first effect is very simple: it must be sure that it's still dealing with the original image dimensions (otherwise funky crop results may occur).
If it would be allowed to apply other effects first, people will add scale effects and start complaining that the module doesn't work :-)

But maybe it's a good idea to add a setting to disable this behaviour on own risk?

caseyb’s picture

Thanks for the super quick reply!!

Your logic makes sense and I can see why it has been applied. Your suggestion to add a setting would be a good solution and I'm sure appreciated by many users!!

Many thanks again!!

caseyb’s picture

Category: Bug report » Feature request
jstoller’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new2.49 KB

I ran into this same issue with the Image Replace module. The attached patch adds a new configuration variable to "Force Manual Crop effects to run first." The setting defaults to TRUE, so behavior will not change for existing installations. Unchecking that setting will bypass the manualcrop_force_effect_order() function.

  • Matthijs committed 598b284 on 7.x-1.x authored by jstoller
    Issue #2511118 by jstoller: Added option to disable effect ordering.
    
matthijs’s picture

Status: Needs review » Fixed

Patch applied and committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.