Comments (7)
well I can no access the real images and without them it is difficult to say something. Probably they have different resolution. You should also check if pdflatex renders them differently too and not only xelatex.
from latex2e.
if you use pdflatex the size is obtained by running extractbb
(which is dvipdfmx essentially), it reports
%%Creator: extractbb 20220710
%%BoundingBox: 0 0 79 150
%%HiResBoundingBox: 0.000000 0.000000 79.000000 150.000000
%%CreationDate: Thu Feb 15 10:58:12 2024
for the first and
%%Creator: extractbb 20220710
%%BoundingBox: 0 0 59 113
%%HiResBoundingBox: 0.000000 0.000000 59.258271 112.515705
%%CreationDate: Thu Feb 15 10:58:29 2024
for the second.
So it is not really a latex issue as it is being given different sizes.
The images are the same in pixel size but have different metadata setting resolution
gimp shows the first as
gimp shows the second as
from latex2e.
@davidcarlisle that's very interesting. I will admit I don't know much about image metadata. I also accept that I may be entirely in the wrong place with this. I assumed, apparently incorrectly? that the print size would be the number of pixels divided by the DPI. Windows, at least, reports a DPI of 96 for both images and the same size in pixels.
Is the offending image's metadata internally inconsistent?
It still looks to me like LaTeX, apparently through extractbb, is looking at different data than other programs are. Is there a standard for this that someone isn't adhering to?
from latex2e.
Windows, at least, reports a DPI of 96 for both images and the same size in pixels.
imagemagick
gives different answers
$ identify -units PixelsPerInch -format '%U %x,%y\n' latex2e-gh1277-1.png
PixelsPerInch 72,72
$ identify -units PixelsPerInch -format '%U %x,%y\n' latex2e-gh1277-2.png
PixelsPerInch 95.989999999999994884,95.989999999999994884
Relevant docs
-units PixelsPerInch
https://imagemagick.org/script/command-line-options.php#units-format '...'
https://imagemagick.org/script/escape.php
from latex2e.
I used a different resizer for the image and sent it to my customer, and it still didn't work. It turns out that Gmail also resizes images (for file size, not pixels) and it causes the exact same issue.
I wish I knew what image tools are being used under the hood so that I could submit a bug report there. Images shouldn't scale differently because they've been emailed at some point.
from latex2e.
you shouldn't sent important binary images as email attachments (or perhaps even embedded in some html). At least put them inside a zip.
from latex2e.
I agree things shouldn't auto-resize, but that's not a LaTeX issue ;)
from latex2e.
Related Issues (20)
- fpeval expands past its argument HOT 2
- New command: \__kernel_set_arg_to_keyvalue:Nnn HOT 4
- amsmath: `{align}` inherits line-depth of above `{gather}`, results in incorrect vertical placement tags HOT 3
- `\disable@package@load` ready to be used by third-party classes? HOT 1
- \if@reversemargin wrongly documented in source code HOT 1
- expansion of key-value package options differ on the first and second call HOT 2
- \IfInstanceExistTF unavailable in 2024-06-01 pre-release 1 HOT 9
- Adding a .dir-locals.el to the project root directory HOT 5
- \afterpage from afterpage package broken with recent distribution HOT 3
- Changes in horizontal spacing in some equations HOT 3
- CamelCase or Pascal case? HOT 3
- array package exhibits a surprising spacing difference when math cells end in explicit spaces
- `flushright` isn't right in rtl paragraphs HOT 13
- Loading `textcomp` turns `LaTeX Info` messages into `Package textcomp Info` messages HOT 22
- Rollback declarations should be improved in several files HOT 2
- \textcircled and TS1 missing circle. HOT 2
- \resizebox* mentioned but unexplained in grfguide? HOT 6
- Error in multicolumn environment with footnotes per page HOT 1
- Incorrect numbering and positioning of footnotes with multicols environment. HOT 5
- \overrightarrow and \overleftarrow paragraph start + documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latex2e.