Fri Jan 05, 2018 6:32 pm Post
AmberV wrote:when I say an ePub creation program might be discarding the info, I mean it never reads it in the first place, only ever treats the image as pixels, and if it allows any kind of visual resizing at all, is going to be doing so with a simple floating point calculation on pixel dimensions directly. It is using the same technology that the reader or browser will be using, and so none of these complexities that Scrivener faces are relevant—hence apples and oranges.
AmberV wrote:For Scrivener to do the same it would become an HTML editor.
Sat Jan 06, 2018 7:25 am Post
Sat Jan 06, 2018 8:48 am Post
Sat Jan 06, 2018 9:29 am Post
Sat Jan 06, 2018 12:37 pm Post
This must be where I don’t understand.Isn’t Scrivener in a sense an HTML editor when it compiles an epub?
When writing in Scrivener I should be able to size images the way I want, without it having an effect on how they appear when I compile, because in Scrivener writing and compiling are two separate things and the way it looks in one doesn’t affect the other.
Sat Jan 06, 2018 1:21 pm Post
AmberV wrote:I am positive most people think that the image they see in the editor is representative of how it will print or be displayed on the screen, and so in every method that Scrivener produces images into the output—even to formats like LaTeX—it strives to replicate the editor settings.
Sat Jan 06, 2018 2:07 pm Post
Sat Jan 06, 2018 2:41 pm Post
AmberV wrote:Something like you’re talking about is probably better put as a new feature request—I’d suggest a checkbox because ignoring image size definitely shouldn’t be default behaviour!
Sun Jan 07, 2018 5:03 am Post
AmberV wrote:Well, I think at this point you’re talking about something entirely different than the OP though. They don’t agree with how Scrivener measures images, but they obviously rather strongly want those numbers used for something rather than ignored entirely!
Sun Jan 07, 2018 10:12 am Post
KB wrote:I'm not doing any conversion for px when adding image sizes to epub etc, just using Apple's image size width and height. Essentially, if the pixel width/height of the image does not match the points width/height, then Scrivener knows the image uses a non-72 DPI and then adds the point width/height as the pixel height/width for the HTML. i.e.:
Code: Select all
if (img.pixelsWide != img.pointsWide || img.pixelsHigh != img.pointsWide)
... include "w=[img.pointsWide]px" etc.
Sun Jan 07, 2018 10:15 am Post
Sun Jan 07, 2018 10:32 am Post
In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 1048 on Mon Feb 06, 2012 9:07 pm
Users browsing this forum: No registered users and 1 guest