I think this is fairly straight forward. Lets say I import an image of 1269x2371x300DPI into my Binder, then create a binder-linked image dragging this into an editor. Now I decide I need to update this figure and use “Replace Media File…” to replace it with a 1269x1830x300DPI image, which looks fine in the Binder.
In the editor we have a cache issue in that the image doesn’t change, but we knew about this for a while, and this is a limitation of the current system and I assumed was only a visual flaw. HOWEVER, the scale image information in the editor is now wrong, and this causes the compiled image to become distorted to fit the old points values in Word / LaTeX etc…
We can solve this by shutting and reopening Scrivener I think? Or delete and relink. I think a better option is if we could “Reload” the image (context menu) somehow?
This also seems to affects images that were imported at the default 72DPI (thus not scaled). Note here the Points values are incongruent to the pixel values:
Hmm, I’m not actually sure what can be done about this, to be honest, because the editor has no idea about changes to binder images. Either I need to remove the “Replace Media File” feature to avoid this sort of issue, or users will have to be careful to use unscaled images for this…
“Replace Media File…” is incredibly useful and more important than the minor problem with scaling, please don’t remove it! I suspect this may be a limitation of textkit, but is there a problem with having a manual “refresh” command that would simply rescan the image dimensions from the binder, you have the details of where the image is right? Wouldn’t image delete and relink update the values (i.e. you do it automatically rather than the user doing it manually?
I think that’s probably the only solution. I’ve added “Reload Original Image” to the contextual menu for linked images (whether linked to an external image or a binder image). This simply replaces the Ctrl-clicked image with the original image again, so that it both reloads it and restores it to the original size.