LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Problem with imagemagick when using display to show images in .eps or tiff formats (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/problem-with-imagemagick-when-using-display-to-show-images-in-eps-or-tiff-formats-4175445681/)

williej 01-15-2013 07:13 AM

Problem with imagemagick when using display to show images in .eps or tiff formats
 
1 Attachment(s)
Hello All,

I have an image in .eps format that i am using the command display to show, but it is not working. The image is shown but the background color is dark and not white. When i use display for the converted image to jpg it opens it on a white background. For png image the background is also not white, same for the tiff image. But when i use command gv foo.eps, the image is opening on a white background. I am not sure why this is happening? Is there something wrong with my imagemagick?

In case you want to have a look at the file it is attached. The version of linux i am using is openSUSE 12.1

Thanks!
Jimmy

leehanken 02-03-2013 08:40 PM

It could be because the image has layers.

Try

Code:

display -flatten -background white foo.eps

williej 02-07-2013 06:29 AM

Hello leehanken,

And thanks for your suggestion. It worked. Is there a way this can be permanently fixed? So i can avoid using the options in your suggestion?

Thanks!

Jimmy

leehanken 02-08-2013 07:34 AM

Hi Jimmy

You could enter into the command line:

Code:

alias display='display -flatten -background white'
To make it permanent you could put this line in your shell's startup script

Typically in a file called .bashrc in your home directory

Regards Lee


All times are GMT -5. The time now is 12:01 AM.