Posts

Showing posts from March 5, 2019

PDFTOPPM -scale-to option

Image
0 I'm using pdftoppm to convert PDFs to PNGs. I have played with the DPI options (-r, -rx, -ry) and increased the quality of the resultant images by increasing the DPI. I see that there is also a -scale-to option. I cannot quite figure our what it means though with "Scales the long side of each page (width for landscape pages, height for portrait pages) to fit in scale-to pixels." So, for example, if I use -r 450 Then I have 450 by 450 pixels in the image. If I add -scale-to 100 Will it now make the image something x 100 pixels? Or what pixels are being referred to in the scale-to option? Does it interact with -r at all? Or are they separate? Thanks. Manual page: https://www.systutorials.com/docs/linux/man/1-pdftoppm/ display-resoluti

16.04: some programs including Nautilus hang for 20 seconds before opening

Image
0 I have a quite powerful Dell laptop with Ubuntu 16.04 installed. Some times (I'd say, every 2 or 3 sessions) I have my entire session affected by a problem with some applications hanging or not starting at all. This is usually solved by rebooting (which isn't ideal). The most common way I realise that the current session is affected, is by trying to open a nautilus window (by clicking on the "Files" dock icon). The window will open, but only after ~20 seconds . Also if I try to launch a File dialog from within other programs (when doing File > Open or Mail > Attach ), the file picker will appear after 20 second, freezing the parent program in the meantime. Another thing that happens is that if I launch gnome-screenshot , it doesn't hang but after I click Take Screenshot it ta