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

yvmarques’s picture

Hello,

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

yvmarques’s picture

Status: Active » Postponed (maintainer needs more info)
cluster4’s picture

You can use the table file_usage to retrieve the file/node relations

Nick Lewis’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)