Screenshot using import does not print properly.
Posted: 2012-05-08T18:13:08-07:00
I am porting a set of scripts from Solaris to Red Hat Linux. On Solaris, we had compiled an old version of the ImageMagick import command from source. Now that we are moving to a Linux platform, we are attempting to use the default and updated ImageMagick RPM. In the script, we run the following command to capture the entire screen and print it:
import -window root -rotate 90 -page 8.5x11-0.5-0.5 gif:- | lpr -h
Using this command on Linux, the print out is mixed up. Certain parts of the screen are overlapping other parts and title bars are repeated. My first assumption is that it has to do with the geometry of the image in contrast to the dpi. If I specify a geometry (1024x768) I can get it to look correct, but it does not fill the entire paper and everything is small.
I have even tried using ps:- as the format and piping both through lp -o fitplot. Neither changed anything.
Any ideas what is going on and/or how this can be resolved? Ultimately, all I want is a print out of the entire screen, in color, which is enlarged to fill the entire 8.5x11 sheet of paper.
Any assistance would be greatly appreciated.
Thank you.
Kenneth R. Leach
import -window root -rotate 90 -page 8.5x11-0.5-0.5 gif:- | lpr -h
Using this command on Linux, the print out is mixed up. Certain parts of the screen are overlapping other parts and title bars are repeated. My first assumption is that it has to do with the geometry of the image in contrast to the dpi. If I specify a geometry (1024x768) I can get it to look correct, but it does not fill the entire paper and everything is small.
I have even tried using ps:- as the format and piping both through lp -o fitplot. Neither changed anything.
Any ideas what is going on and/or how this can be resolved? Ultimately, all I want is a print out of the entire screen, in color, which is enlarged to fill the entire 8.5x11 sheet of paper.
Any assistance would be greatly appreciated.
Thank you.
Kenneth R. Leach