Image Pixels, Points, and the CSS Reference Pixel

??

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.:

if (img.pixelsWide != img.pointsWide || img.pixelsHigh != img.pointsWide) ... include "w=[img.pointsWide]px" etc.

If I understand you correctly, you are saying that this should be more like this:

int imgWide = img.pointsWide * (96/72)

That would mean including width/height for all images even if they aren’t scaled…