Log of #mupdf at irc.freenode.net.

 <<<Back 1 day (to 2021/02/20)Fwd 1 day (to 2021/02/22)>>>20210221 
macwinne_ when rendering PDF to PNG, what DPI do you typically need to render at for the pages to be sharp on iphone? 200? or more generally, what is the highest DPI you would render if you are just rendering pages for a simple PDF reader03:25.29 
artifexirc-bot <Robin_Watts> Well, that's the wrong question 🙂10:31.56 
  <Robin_Watts> Firstly, it depends on the phone - different phones have different resolutions/sizes (and hence dpis)10:32.58 
  <Robin_Watts> Secondly, it depends on the size of the page and how you plan to display it.10:33.29 
  <Robin_Watts> If you plan to scale a page so that it fits the phone screen, you'll need a different answer than if you plan to display it at 1:1 and allow the user to pan around it.10:34.30 
  <Robin_Watts> Simplest answer is to find the dimensions of the screen (say 2000x1000) and then scale/render the page so that it fits those sizes.10:36.39 
macwinne_ i kind of get it.. I'm not sure what to ask exactly. I currently generate a PNGs for a pdf at 25 DPI (thumbnail), 100 DPI and 250 DPI. Depending on the viewers zoom factor, i will set the image src to the 100dpi image or the 250 dpi image. I'm just wondering if I'm over doing it with the DPIs.. or if there is a different method to optimally choose the DPIs for a PDF based on info contained within the PDF.22:34.58 
  like for certain PDFs, does it make sense to only do 75 dpi and 150dpi..22:35.20 
 <<<Back 1 day (to 2021/02/20)Forward 1 day (to 2021/02/22)>>> 
ghostscript.com #ghostscript