Timeline for org-mode: Why do my images look pixelated?
Current License: CC BY-SA 4.0
20 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 16, 2024 at 3:44 | comment | added | NickD | That should be mediainfo. | |
| Jan 15, 2024 at 19:18 | comment | added | NickD | Here's a screenshot: i.sstatic.net/Sqs4o.png - the top is the image opened in Emacs, the bottom is the same image displayed by ImageMagick. I don't see any difference. [BTW, I don't know what happened, but the links to files.lilf.ir work.] Try using medianfo to examine image metadata in the file. You cannot increase the resolution of a raster image (like a JPG): your best bet is to start from a vector image (like an SVG) and convert it to a raster image at the dimensions you are interested in and then leave it alone: no more conversions or resizing. | |
| Jan 15, 2024 at 12:37 | comment | added | HappyFace | @dalanicolai I tried both nil and t. I could not see a difference. Can I set the DPI of the shown image somehow? I just tested another image files.lilf.ir/tmp/… , and it really has lower quality when viewed in emacs. The image feels as if it had a very lossy compression applied to it. | |
| Jan 14, 2024 at 13:34 | comment | added | dalanicolai | Don't use image-transform-set-smoothing, indeed that only works for image-mode. Just set image-transform-smoothing (all single dashes) to nil via setq before visiting the org-buffer. | |
| Jan 14, 2024 at 12:52 | comment | added | HappyFace | @NickD Thanks, Nick. | |
| Jan 14, 2024 at 12:50 | comment | added | HappyFace | @dalanicolai It doesn't look too bad, it's just looks off putting enough to be a bother. It looks bad in org-mode without zooming in. The jpg version is from saving the content of the clipboard image using Applescript IIRC. Thanks. image--transform-smoothing is already nil for me. Trying to set it to smooth in an org-mode buffer using image-transform-set-smoothing errors and says that I am not in an Image buffer. | |
| Jan 14, 2024 at 7:44 | comment | added | dalanicolai | Does the image look blurry already in org-mode? Or only after you are zooming in again? I only notice it in the zoomed in image, where it makes total sense. Anyway, if it really looks bad, then I guess it must be the transform-smoothing algorithm (which apparently is platform dependent). So I guess you could try setting image-transform-smoothing to nil. Although irrelevant, I wonder how (or more why) you 'acquired' the jpg version of the image. | |
| Jan 14, 2024 at 6:11 | comment | added | NickD | Well, I cannot see the quality degradation when I open the WIkipedia image in emacs and ImageMagick, either in the original SVG or after I convert the SVG to JPG or PNG, so I needed your help in order to try to figure out what's going on, but here we are 10 comments into a fruitless discussion and I still cannot even begin to reproduce the problem. So I give up: I hope that you solve the problem yourself or somebody else can help you solve it. I'll keep watching the question to see how it is resolved. | |
| Jan 14, 2024 at 4:26 | comment | added | HappyFace | @NickD I added the file and the exact image file used in it. But the file and the image really don't matter. I can see the quality degradation on all images that have some text in it. The text becomes less sharp in emacs compared to viewing the same image with another app. | |
| Jan 14, 2024 at 4:24 | history | edited | HappyFace | CC BY-SA 4.0 | added 543 characters in body |
| Jan 13, 2024 at 15:33 | review | Close votes | |||
| Jan 29, 2024 at 3:08 | |||||
| Jan 13, 2024 at 15:21 | comment | added | NickD | You need to include more information: in particular, you need to include your Org mode file (not a screen shot of it): we need to see the text of the file, including all the links. | |
| Jan 13, 2024 at 3:37 | comment | added | HappyFace | @NickD I don't know why the link wouldn't work for you, it still works for me. I don't know what else I can do to make the problem more reproduceable. It might be the OS/display, too (I am on a Retina display Apple machine). Regardless of its reproducibility, do you know how emacs re-sizes images to be displayed? I am pretty sure that the problem is in that step. It is resizing the image using a naive algorithm and the quality suffers. | |
| Jan 12, 2024 at 18:07 | comment | added | NickD | The link does not work for me. However, I can (and did) download the image from Wikipedia and write a short Org mode file, inline the image and look for problems. It may be my eyes, but I don't see any problem. So I would like you to tell me how to reproduce the problem, so I can try it and be reasonably certain that I'm not going off the rails. That's what I suggested. | |
| Jan 12, 2024 at 17:37 | comment | added | HappyFace | @NickD It isn't a problem that happens with any one specific image. It happens with all images. (I guess if the image has no text, it's not noticeable.) The problem is not too bad, but the image quality is just not as good as when I view the images with any other app, and the image looks slightly blurry and pixely. Here is an example image I tested with: files.lilf.ir/tmp/20240112_210226_iP8AZc.jpg | |
| Jan 11, 2024 at 21:32 | comment | added | NickD | Or maybe even better, provide the Org mode file itself and any instructions necessary to reproduce the problem, so that we can try it out and see for ourselves. | |
| Jan 11, 2024 at 10:47 | comment | added | db48x | If you say so. I can’t see anything wrong. Why don’t you take a screenshot of just the problem, and nothing else. Maybe even zoom in on it. | |
| Jan 11, 2024 at 10:10 | comment | added | shynur | @db48x The boundaries of the different colors are blurred | |
| Jan 11, 2024 at 8:16 | comment | added | db48x | That looks fine to me. Can you be more specific about the problem? | |
| Jan 11, 2024 at 7:33 | history | asked | HappyFace | CC BY-SA 4.0 |