Closed (duplicate)
Project:
EPSA Crop - Image Cropping
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 13:19 UTC
Updated:
24 Mar 2012 at 04:51 UTC
I have noticed that when using something like IMCE, and the FileField Sources modules, I can select the same image from my uploaded files to use on different nodes.
If I then choose to do some EPSA Cropping on each node, selecting a different crop area.. It will override the crops for the other nodes.
I assume it's doing this because how it's storing and fetching the data, mostly only using the FID?
Would it be easy enough for someone like myself to modify this to also take into account the NID?
Comments
Comment #1
yvmarques commentedHello,
I use only the FID for retrieve the coordonates for cropping, that why you've this problem. Maybe I should had the nid, but it's a little bit complicate get the NID from the FID because in the shema of the database (table files) we don't have relation between file and node.
I know you've this relation in the table of imagefield or filefile, but when I've to apply the coordonates for the image, I've only the filepath for reference.
I think the only way how you can fix it, it's to use different presets for it.
If you've any idea, I'm open for it.
Regards,
-- Yvan
Comment #2
yvmarques commentedComment #3
cluster4 commentedYou can use the table file_usage to retrieve the file/node relations
Comment #4
Nick Lewis commentedDuplicate of #1497484: Unique Crops Per Node/ Revision