Closed (fixed)
Project:
Manual Crop
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
19 Sep 2013 at 10:55 UTC
Updated:
2 Jan 2015 at 17:18 UTC
Jump to comment: Most recent
I really like the "Automatically reuse cropped style" effect. It seems to load the first crop selection that was applied to an image. It would be nice if one could set a priority for the available crop selections so that a preferred crop selection could automatically be loaded and applied. Are there any plans to include this feature?
Comments
Comment #1
matthijsThat looks like a nice feature indeed, I'll try to implement it in a future release.
Matthijs
Comment #2
matthijsHi,
I just added this feature, please give it a test drive and let me know if you have any issues!
Matthijs
Comment #3
morenstratThank you! But it doesn't work for me...
I get the follwing notices/warnings when I add the "Manual Crop: Automatically reuse cropped style" effect:
Comment #4
matthijsI've added an update hook to add the missing setting (which is causing this when you load the form for the first time), please run it and try again.
Comment #5
morenstratI'm still getting warnings and notices, and the only form item I see it the "Fallback image style" drow down. The priority table only has a header row.
Comment #6
matthijsThat's weird.. Just to be sure: did you run update 7106? If this is the case I probably made a mistake in that update...
Comment #7
morenstratYes, I ran the update. This is the serialized data for the manualcrop_auto_reuse effect in the image_effects table after the update:
Comment #8
matthijsThe data looks okay to me, so I probably missed something else... Stand by for a proper solution :-)
Comment #9
morenstratOh, now it's working!
What I did: version 7.x-1.4+74-dev was installed. I installed the git version and it didn't work (comment #3). Reverted to 7.x-1.4+74-dev, then git version again and ran update 7106, but it didn't work (comment #5). Reverted to 7.x-1.4+74-dev, manually reverted schema version in system table to 7105. Installed git version again, ran update 7106 and.. it worked!
Comment #10
matthijsVery weird, but I'm glad it's working now... Maybe you were experiencing some kind of caching glitch?
I'll try to give the update some more test drives just to be sure. Thanks for your help/time!
Comment #11
morenstratMust have been caching... I checked my .bash_history to verify that I ran update 7106 the first time, and I did...
Thank you for your efforts!
Comment #13
jesss commentedI just ran into this issue with a fresh install of 7-x-1.x-dev (installed yesterday, January 21). Following the experience of dunix, I manually reset the schema version to 7105 and ran updb, but no joy.
Comment #14
kars-t commentedIn the latest dev I am as well missing a list of automatic fallbacks.
$data seems to be all empty starting with the style being loaded by the menu callback. In my debugger I can see that this seems to be common to all styles but I have no clue where the $data array should be filled with settings.
Comment #15
capellicI'm having the same problem as reported in comment #14. I am using the Dev version because of case #2070521: Images with Manual Crop style cannot be inserted into text area with Insert module. Thank you.
Comment #17
matthijsThis is embarrassing, but I (probably) never checked adding a new reuse effect...
The errors should be gone now! Sorry and thanks for the feedback!
Comment #19
candelas commentedI was having this issue with 7.x-1.4 and I can confirm that the bug goes away. Thanks :)