On 9/25/20 6:08 AM, Enrico Forestieri wrote: > On Fri, Sep 25, 2020 at 01:06:03AM -0400, Scott Kostyshak wrote: >> On Thu, Oct 04, 2018 at 06:48:12AM +0200, Richard Kimberly Heck wrote: >>> commit ea81faa911fc2561a017eb36c3a3d0bbe5b86756 >>> Author: Enrico Forestieri <for...@lyx.org> >>> Date: Sun Jun 24 20:06:40 2018 +0200 >>> >>> Fix bug #11180 >>> >>> When a raster image with an advertised pixel density different >>> from 72 dpi is included in a latex file, the output image dimensions >>> are scaled by the ratio 72/pixel_density. Hence, if a clipping >>> bounding box is specified, it has to be scaled by the same ratio, >>> otherwise the images will be clipped differently on screen and output. >>> Here we use the extractbb command (present in any TeX distribution) >>> to ask about the output dimensions of the image as dictated by the >>> pixel density and compute the scaling ratio by the knowledge of the >>> actual dimensions. If, for whatever reason, extractbb is not found, >>> everything goes as before, because the clipping bounding box will >>> simply not be corrected. >>> >>> (cherry picked from commit 380f34a11485c41d812695dc4279b24a5ed5cc07) >>> --- >> A bisect on 2.3.x lead me here. I see the same behavior on master. To >> reproduce, download the attached files and open the .lyx file and view >> as PDF (pdflatex). The image is clipped differently than before this >> commit. Strangely, if I export on the command line (with -e pdf2), >> things work as before. > I think it was an oversight. The clipping bounding box should not be > corrected for all vector formats, not only postscript. Fixed at 9b1763cd. > Riki, this is also needed in stable.
OK. Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel