mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[GH-ISSUE #567] PDF resolution / density setting #203
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)

Procressed 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).
@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!
@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!
@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_xxxwhere 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!
@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. :)
@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!