[GH-ISSUE #567] PDF resolution / density setting #203

Closed
opened 2026-02-25 22:34:36 +03:00 by kerem · 5 comments
Owner

Originally created by @d-fleischer on GitHub (Apr 11, 2025).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/567

Originally assigned to: @sadok-f on GitHub.

Is your feature request related to a problem? Please describe.
When converting a pdf using the tool, it seems like there is quite a loss in quality. The original pdf file that im referencing has great quality, but after the conversion, its always looking pretty low-quality and often becomes unreadable. Tweaking the others parameters doesn't seem to do anything either. I'll put an example here:

Original image (screenshot from PDF)
Image

Procressed image
Image

Describe the solution you'd like
It would be great if there was a way to influence this with a parameter or pointing users like me in the right direction where to set this in my flyimg installation.

Describe alternatives you've considered
I found this issue that has pretty much this exact problem, but the solution doesn't work for me. The density option doesn't exist in the current version and I also had no luck trying to implement the provided code into my installation.

Additional context
We are using this tool mainly to create preview images of (scanned) pdf pages, which are often full of text that can get quite small. So being able to minimize the loss of details would be amazing. Otherwise we can also experiment with increasing our scanning resolution.

Love this tool so far, so thanks a lot to the creator(s).

Originally created by @d-fleischer on GitHub (Apr 11, 2025). Original GitHub issue: https://github.com/flyimg/flyimg/issues/567 Originally assigned to: @sadok-f on GitHub. **Is your feature request related to a problem? Please describe.** When converting a pdf using the tool, it seems like there is quite a loss in quality. The original pdf file that im referencing has great quality, but after the conversion, its always looking pretty low-quality and often becomes unreadable. Tweaking the others parameters doesn't seem to do anything either. I'll put an example here: Original image (screenshot from PDF) ![Image](https://github.com/user-attachments/assets/ca8d6f17-a0e8-4912-9881-732c53caba98) Procressed image ![Image](https://github.com/user-attachments/assets/705fd9c5-846b-4567-a0b1-88d6e69683a2) **Describe the solution you'd like** It would be great if there was a way to influence this with a parameter or pointing users like me in the right direction where to set this in my flyimg installation. **Describe alternatives you've considered** I found [this issue](https://github.com/flyimg/flyimg/issues/303) that has pretty much this exact problem, but the solution doesn't work for me. The density option doesn't exist in the current version and I also had no luck trying to implement the provided code into my installation. **Additional context** We are using this tool mainly to create preview images of (scanned) pdf pages, which are often full of text that can get quite small. So being able to minimize the loss of details would be amazing. Otherwise we can also experiment with increasing our scanning resolution. Love this tool so far, so thanks a lot to the creator(s).
kerem 2026-02-25 22:34:36 +03:00
Author
Owner

@sadok-f commented on GitHub (Apr 11, 2025):

Hi @d-fleischer
Thank you for opening this issue. I'll take a look into it.
Can you provide the full URL parameters you use to generate the processed image?
I want to know which output format you use.

Thank you again!

<!-- gh-comment-id:2796952689 --> @sadok-f commented on GitHub (Apr 11, 2025): Hi @d-fleischer Thank you for opening this issue. I'll take a look into it. Can you provide the full URL parameters you use to generate the processed image? I want to know which output format you use. Thank you again!
Author
Owner

@d-fleischer commented on GitHub (Apr 11, 2025):

Hi @sadok-f
Thank you for the reply.
We are basically just doing

https://ourimgflyinstallation.com/upload/pdfp_10/https://ourserver.com/multipage.pdf

Trying to get the largest possible image size and letting the tool automatically determine the format. I also tried it with png output but its basically the same looking. We don't really care about the exact format, it just needs to be displayed properly in a modern browser inside an tag.

Thank you for your time and effort!

<!-- gh-comment-id:2797123625 --> @d-fleischer commented on GitHub (Apr 11, 2025): Hi @sadok-f Thank you for the reply. We are basically just doing https://ourimgflyinstallation.com/upload/pdfp_10/https://ourserver.com/multipage.pdf Trying to get the largest possible image size and letting the tool automatically determine the format. I also tried it with png output but its basically the same looking. We don't really care about the exact format, it just needs to be displayed properly in a modern browser inside an <img src=""> tag. Thank you for your time and effort!
Author
Owner

@sadok-f commented on GitHub (Apr 11, 2025):

@d-fleischer can you test the latest release 1.7.3 , I've added a new density option in the URL dnst_xxx where you can set the density value (more details here)
so your URL could be something like:
https://ourimgflyinstallation.com/upload/dnst_300,pdfp_10/https://ourserver.com/multipage.pdf

Thanks!

<!-- gh-comment-id:2797561729 --> @sadok-f commented on GitHub (Apr 11, 2025): @d-fleischer can you test the latest release [1.7.3](https://github.com/flyimg/flyimg/releases/tag/1.7.3) , I've added a new density option in the URL `dnst_xxx` where you can set the density value (more details [here](https://imagemagick.org/script/command-line-options.php#density)) so your URL could be something like: https://ourimgflyinstallation.com/upload/dnst_300,pdfp_10/https://ourserver.com/multipage.pdf Thanks!
Author
Owner

@d-fleischer commented on GitHub (Apr 15, 2025):

@sadok-f This is amazing, exactly what we needed. Thank you so much! Saved us a bunch of work. :)

<!-- gh-comment-id:2806636948 --> @d-fleischer commented on GitHub (Apr 15, 2025): @sadok-f This is amazing, exactly what we needed. Thank you so much! Saved us a bunch of work. :)
Author
Owner

@sadok-f commented on GitHub (Apr 28, 2025):

Hi @d-fleischer
If your company or organisation is using Flyimg, we would love to have you listed in our ADOPTERS.md file!
Feel free to add your entry — we'd love to highlight your support.
Thank you!

<!-- gh-comment-id:2834531004 --> @sadok-f commented on GitHub (Apr 28, 2025): Hi @d-fleischer If your company or organisation is using Flyimg, we would love to have you listed in our [ADOPTERS.md file](https://github.com/flyimg/flyimg/blob/main/ADOPTERS.md)! Feel free to add your entry — we'd love to highlight your support. Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#203
No description provided.