<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Convert PS and EPS images to JPEG</title>
	<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Thu, 08 Jan 2009 00:01:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8531</link>
		<pubDate>Mon, 17 Mar 2008 18:18:53 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8531</guid>
					<description>It's part of the Image Magic package. You're on Ubuntu, right?

&lt;pre lang="bash"&gt;sudo aptitude install imagemagic&lt;/pre&gt;

That should install mogrify and bunch of other useful image manipulation tools.</description>
		<content:encoded><![CDATA[<p>It&#8217;s part of the Image Magic package. You&#8217;re on Ubuntu, right?</p>

<div class="wp_syntax"><div class="code"><pre class="bash">sudo aptitude install imagemagic</pre></div></div>

<p>That should install mogrify and bunch of other useful image manipulation tools.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Srinivas</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8530</link>
		<pubDate>Mon, 17 Mar 2008 18:15:34 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8530</guid>
					<description>Dear Sir
I am thankful to your reply
But In my computer I donot have mogrify command
Please kindly suggest me 
Thanking you sir
D Srinivas</description>
		<content:encoded><![CDATA[<p>Dear Sir<br />
I am thankful to your reply<br />
But In my computer I donot have mogrify command<br />
Please kindly suggest me<br />
Thanking you sir<br />
D Srinivas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8529</link>
		<pubDate>Mon, 17 Mar 2008 18:05:54 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8529</guid>
					<description>Did you do the mogrify step from above? Set the resolution to something smaller (like 320x320 for example) and see if that drops down the size.

I'd try -sample instead of -resize option - this way it will resample the image hopefully resulting in much greater size reduction.</description>
		<content:encoded><![CDATA[<p>Did you do the mogrify step from above? Set the resolution to something smaller (like 320&#215;320 for example) and see if that drops down the size.</p>
<p>I&#8217;d try -sample instead of -resize option - this way it will resample the image hopefully resulting in much greater size reduction.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Srinivas</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8527</link>
		<pubDate>Mon, 17 Mar 2008 16:52:12 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8527</guid>
					<description>Dear Sir
I am working with those commands fine, Now what the images created
are having very large file size
Could you please suggest me to reduce the file size of jpeg images
Because I am creating at a time 12 images giving a total size of
nearly 20 MB
So, Please could you please suggest me to reduce the file size
Thanking you sir
D Srinivas</description>
		<content:encoded><![CDATA[<p>Dear Sir<br />
I am working with those commands fine, Now what the images created<br />
are having very large file size<br />
Could you please suggest me to reduce the file size of jpeg images<br />
Because I am creating at a time 12 images giving a total size of<br />
nearly 20 MB<br />
So, Please could you please suggest me to reduce the file size<br />
Thanking you sir<br />
D Srinivas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8526</link>
		<pubDate>Mon, 17 Mar 2008 16:25:35 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8526</guid>
					<description>Glad I could help. :)</description>
		<content:encoded><![CDATA[<p>Glad I could help. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Srinivas</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8525</link>
		<pubDate>Mon, 17 Mar 2008 16:21:23 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8525</guid>
					<description>Dear Sir
I am thankful for your reply, which helped me very much
I tried on individual file, it worked well,
Now I success with this command
Thanking you sir
D Srinivas</description>
		<content:encoded><![CDATA[<p>Dear Sir<br />
I am thankful for your reply, which helped me very much<br />
I tried on individual file, it worked well,<br />
Now I success with this command<br />
Thanking you sir<br />
D Srinivas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8522</link>
		<pubDate>Mon, 17 Mar 2008 14:30:16 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8522</guid>
					<description>I don't think it's recognizing the "ds%03d.ps" as an input file name. I don't think you can use the %03d notation this way. Have you tried running the command individually on each ps file?

Alsternatively, you can try this:

&lt;pre lang="bash"&gt;for f in $(ls *.ps); do
gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=$f.jpg $f
done&lt;/pre&gt;

This will loop through all the .ps files in the current directory and create a jpeg for each of them.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think it&#8217;s recognizing the &#8220;ds%03d.ps&#8221; as an input file name. I don&#8217;t think you can use the %03d notation this way. Have you tried running the command individually on each ps file?</p>
<p>Alsternatively, you can try this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash"><span style="color: #b1b100;">for</span> f <span style="color: #b1b100;">in</span> $<span style="color: #66cc66;">&#40;</span>ls *.ps<span style="color: #66cc66;">&#41;</span>; <span style="color: #b1b100;">do</span>
gs -<span style="color: #0000ff;">sDEVICE=</span>jpeg -<span style="color: #0000ff;">dJPEGQ=</span><span style="color: #cc66cc;">100</span> -dNOPAUSE -dBATCH -dSAFER -r300 -<span style="color: #0000ff;">sOutputFile=</span><span style="color: #0000ff;">$f</span>.jpg <span style="color: #0000ff;">$f</span>
<span style="color: #b1b100;">done</span></pre></div></div>

<p>This will loop through all the .ps files in the current directory and create a jpeg for each of them.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Srinivas</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8520</link>
		<pubDate>Mon, 17 Mar 2008 09:31:02 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8520</guid>
					<description>Dear Sir,
I used "gs -r300 -sDEVICE=pswrite -sOutputFile=ds%03d.ps -dNOPAUSE test.ps -c quit" to convert ps file which contains many images in that and
it created all individual figures
Now I am trying to convert back these ps files to jpg format
But I am unable to do it
I am using presently 

"gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=jds%03d.jpg ds%03d.ps"

It is not converting to jpg format
Could you please suggest me how to do it
Thanking you sir
D Srinivas</description>
		<content:encoded><![CDATA[<p>Dear Sir,<br />
I used &#8220;gs -r300 -sDEVICE=pswrite -sOutputFile=ds%03d.ps -dNOPAUSE test.ps -c quit&#8221; to convert ps file which contains many images in that and<br />
it created all individual figures<br />
Now I am trying to convert back these ps files to jpg format<br />
But I am unable to do it<br />
I am using presently </p>
<p>&#8220;gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=jds%03d.jpg ds%03d.ps&#8221;</p>
<p>It is not converting to jpg format<br />
Could you please suggest me how to do it<br />
Thanking you sir<br />
D Srinivas
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8498</link>
		<pubDate>Sat, 15 Mar 2008 21:54:24 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8498</guid>
					<description>Are the figures on separate pages? Then you can split the original ps file with:

&lt;pre lang="bash"&gt;gs -r300 -sDEVICE=djet500 -sOutputFile=myfile.%03d.ps -dNOPAUSE myfile.ps -c quit&lt;/pre&gt;

This will produce bunch of files named myfile001.ps, myfile002.ps, myfile003.ps and etc - one file per page.

Take these files and run them through the stuff above and you should be good. :) Let me know if that helps.

If this doesn't work (some ps files just don't cooperate with this method_ I'd just recommend to open the ps file, and take a screenshot of each chart with something like Ksnapshot which lets you capture just a selected region of the screen.</description>
		<content:encoded><![CDATA[<p>Are the figures on separate pages? Then you can split the original ps file with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash">gs -r300 -<span style="color: #0000ff;">sDEVICE=</span>djet500 -<span style="color: #0000ff;">sOutputFile=</span>myfile.%03d.ps -dNOPAUSE myfile.ps -c quit</pre></div></div>

<p>This will produce bunch of files named myfile001.ps, myfile002.ps, myfile003.ps and etc - one file per page.</p>
<p>Take these files and run them through the stuff above and you should be good. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />  Let me know if that helps.</p>
<p>If this doesn&#8217;t work (some ps files just don&#8217;t cooperate with this method_ I&#8217;d just recommend to open the ps file, and take a screenshot of each chart with something like Ksnapshot which lets you capture just a selected region of the screen.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Srinivas D</title>
		<link>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8493</link>
		<pubDate>Sat, 15 Mar 2008 12:45:17 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/#comment-8493</guid>
					<description>Hi,
I am using Ubuntu Linux I am creating ps files but I need in jpeg format
I used the below conversion to convert ps to jpeg, but I created only one
image but the ps files has 12 figures.
Could you please suggest me how to solve this problem
" gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=myfile.jpg myfile.eps"
Thanking you
D Srinivas</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using Ubuntu Linux I am creating ps files but I need in jpeg format<br />
I used the below conversion to convert ps to jpeg, but I created only one<br />
image but the ps files has 12 figures.<br />
Could you please suggest me how to solve this problem<br />
&#8221; gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=myfile.jpg myfile.eps&#8221;<br />
Thanking you<br />
D Srinivas
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.260 seconds -->
