cbconvert icon indicating copy to clipboard operation
cbconvert copied to clipboard

default resolution?

Open sinedied opened this issue 6 months ago • 3 comments

Thanks for your tool!

What's the the default resolution used? I was assuming it would use the same as the images from the PDFs, but it seems I got a way lower resolution than the original with some PDF files.

sinedied avatar Jun 13 '25 10:06 sinedied

The images are exported from the PDF with a hardcoded DPI of 300.0, which is not exposed.

gen2brain avatar Jun 13 '25 10:06 gen2brain

Looking a bit into tools like mupdf, it seems it's possible to extract images preserving their original resolution. Would you be open for having an option for that?

sinedied avatar Jun 13 '25 10:06 sinedied

That would be nice, first in go-fitz, then here. Perhaps it would also help with issues like https://github.com/gen2brain/cbconvert/issues/40, and a few more, I think.

I am currently busy but will get back to this project eventually.

gen2brain avatar Jun 13 '25 10:06 gen2brain