| Summary: | ksnapshot creates PNGs with meaningless pixel density | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Jim <jdiamond> |
| Component: | tdegraphics | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | bugwatch, jdiamond, michele.calgaro |
| Priority: | P5 | ||
| Version: | R14.0.x [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
|
Description
Jim
2020-10-30 07:21:32 CDT
Hi Jim, I can't reproduce the problem. I tried to capture my full screen and save it to file and the picture size in pixel was exactly the same as my screen. I am using R14.1.0-dev for the record, but I don't think R14.0.x would be different. Perhaps something else affecting this on your system? You are missing the point. I didn't say the number of pixels was wrong, I was saying (not explicitly enough, my bad) that the information stored inside the PNG file which tells the number of pixels per inch is wrong. Try the following on some PNG file (change a.png to whatever your file is called): identify -units PixelsPerInch -format '%x,%y\n' a.png With my TDE ksnapshot it says 72,72 but it should say something like 163,163 because that is the number of pixels per inch on my screen. (In fact, with the KDE4 ksanpshot it says 162.99000000000000909,162.99000000000000909 which is ugly output, but close enough for me. In either case (TDE, KDE4) the number of pixels is correct, and image display programs which show an image on the screen with one image pixel to one display pixel will show the expected thing in both cases. But other programs which look at a PNG and say "how big in inches is this image" will get the wrong result. I hope I have explained the issue sufficiently this time, if not let me know. Thanks. |