Closed (works as designed)
Project:
Image javascript crop
Version:
7.x-1.0-rc1
Component:
PHP
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2012 at 18:37 UTC
Updated:
29 Oct 2012 at 17:04 UTC
After upgrading to 7.12 we changed a presets javascript crop dimensions, after that the Hell started
We had big problems uploading files , that solved by inserting data_field_image_width, _height fields manually in each image-fields' table !
And we Rolled Back the Presets dimensions.But now all files are stuck with the changed dimensions , not the old ones and all files seem poorly cropped
i tried to make anew preset --assinged it to Content type - boom white screen
What tables are updated each time a preset changes? Any clue how to "re-index" these tables to repair the problem?
Painless recreation of the files?
What should i look for in the database?
Thank u
Comments
Comment #1
nils.destoop commentedThe only table that imagecrop is using, is 'image_crop_settings'. So the data_field_image_width, _height fields are not from imagecrop.
Comment #2
xxronis commentedok my issues were more about uploading rather than the cropper, but since you answered let me ask u just that.
As i said before i 've lost in a lot of files their cropped coordinates .The only way to restore the previous state is to retrieve the old 'image_crop_settings' table i suppose?
Comment #3
nils.destoop commentedLooks like you didn't run update.php:
Update hooks from image module:
image module
7002 - Add width and height columns to image field schema and populate.
7003 - Remove the variables that set alt and title length since they were not used for database column size and could cause PDO exceptions.
7004 - Use a large setting (512 and 1024 characters) for the length of the image alt and title fields.
Comment #4
xxronis commentedThanks zuuper , i did run update.php offcourse but the db changes were not just deployed correctly ... i solved manually the 7002 but i guess i 'll have to deploy them correctly
But the serious matter is to bring back the old right-cropped files -- please read the whole post
thank u
Comment #5
xxronis commentedComment #6
xxronis commentedIn other words
i retrieved my old 'image_crop_settings' table and restored the data,
the old files remain the same with false cropping,as there is some hundeds of these images it is impossible to re-crop these images
what else should i do to recreate the files with the old settings?their crop settings are stored in the database
Comment #7
nils.destoop commentedDid you flush the image style folders? As long as the image exist in the image style folder, it won't be regenerated by image module.
Comment #8
nils.destoop commented