<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Howto: Linux Creating a Image Thumbnails from shell prompt</title> <atom:link href="http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: lee</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-170639</link> <dc:creator>lee</dc:creator> <pubDate>Fri, 15 Apr 2011 14:16:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-170639</guid> <description>You can get tiny JPEGs or PNGs out of large files, using IM, if you RTFM rather than blast it --- check out colour profiles, the &#039;thumbnail&#039; command option, colour spaces....</description> <content:encoded><![CDATA[<p>You can get tiny JPEGs or PNGs out of large files, using IM, if you RTFM rather than blast it &#8212; check out colour profiles, the &#8216;thumbnail&#8217; command option, colour spaces&#8230;.</p> ]]></content:encoded> </item> <item><title>By: marc41</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-147862</link> <dc:creator>marc41</dc:creator> <pubDate>Thu, 26 Mar 2009 14:58:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-147862</guid> <description>Here is a script that does this and MUCH MORE!
-- Enjoy!</description> <content:encoded><![CDATA[<p>Here is a script that does this and MUCH MORE!</p><p>&#8211; Enjoy!</p> ]]></content:encoded> </item> <item><title>By: Flor</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-141015</link> <dc:creator>Flor</dc:creator> <pubDate>Thu, 06 Sep 2007 02:30:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-141015</guid> <description>I have a suggestion to execute it in bash:
ls *.png &#124; xargs -I {} convert -thumbnail 200 {} thumb.{}</description> <content:encoded><![CDATA[<p>I have a suggestion to execute it in bash:</p><p>ls *.png | xargs -I {} convert -thumbnail 200 {} thumb.{}</p> ]]></content:encoded> </item> <item><title>By: Steve Lajoie</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-140756</link> <dc:creator>Steve Lajoie</dc:creator> <pubDate>Sat, 11 Aug 2007 00:36:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-140756</guid> <description>The latests version of convert doesn&#039;t seem to have the -thumbnail option.
My version of the shell script works likes this:
for image in $@
do
echo &quot;found file $image and making thumb&quot;
convert $image -resize 100x thumb-$image
done
So if you have a image named &quot;image001.jpg&quot; you get a thumbnail named &quot;thumb-image001.jpg&quot;.</description> <content:encoded><![CDATA[<p>The latests version of convert doesn&#8217;t seem to have the -thumbnail option.</p><p>My version of the shell script works likes this:</p><p>for image in $@<br
/> do<br
/> echo &#8220;found file $image and making thumb&#8221;<br
/> convert $image -resize 100x thumb-$image<br
/> done</p><p>So if you have a image named &#8220;image001.jpg&#8221; you get a thumbnail named &#8220;thumb-image001.jpg&#8221;.</p> ]]></content:encoded> </item> <item><title>By: Felix</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-140480</link> <dc:creator>Felix</dc:creator> <pubDate>Fri, 13 Jul 2007 20:27:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-140480</guid> <description>The script is buggy with my versions of djpeg (6b), pnmscale (netpbm 10.0) and cjpeg (6b). Not processing the thumbs that are already there, it should read:
for i in [^TN_]*.jpg
do
djpeg $i &#124; pnmscale -xysize 48 38 &#124; cjpeg -optimize -progressiv -quality 75 &gt; TN_$i;
echo $i thumbnails created;
done </description> <content:encoded><![CDATA[<p>The script is buggy with my versions of djpeg (6b), pnmscale (netpbm 10.0) and cjpeg (6b). Not processing the thumbs that are already there, it should read:</p><p>for i in [^TN_]*.jpg<br
/> do<br
/> djpeg $i | pnmscale -xysize 48 38 | cjpeg -optimize -progressiv -quality 75 &gt; TN_$i;<br
/> echo $i thumbnails created;<br
/> done</p> ]]></content:encoded> </item> <item><title>By: Felix</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-140479</link> <dc:creator>Felix</dc:creator> <pubDate>Fri, 13 Jul 2007 19:10:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-140479</guid> <description>Addition to Tim&#039;s script:
If you do not want to re-thumb the thumbnails which would result in things like TN_TN_image.jpg, simply use this first line:
for i in [^TN_]*.jpg</description> <content:encoded><![CDATA[<p>Addition to Tim&#8217;s script:<br
/> If you do not want to re-thumb the thumbnails which would result in things like TN_TN_image.jpg, simply use this first line:</p><p>for i in [^TN_]*.jpg</p> ]]></content:encoded> </item> <item><title>By: michuk</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-136768</link> <dc:creator>michuk</dc:creator> <pubDate>Fri, 11 May 2007 08:53:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-136768</guid> <description>Another useful article on the subject: http://polishlinux.org/apps/graphics/enchanting-pictures-with-imagemagick/
(massive resizing, adding text or frames to images, etc, all with ImageMagick)</description> <content:encoded><![CDATA[<p>Another useful article on the subject: <a
href="http://polishlinux.org/apps/graphics/enchanting-pictures-with-imagemagick/" rel="nofollow">http://polishlinux.org/apps/graphics/enchanting-pictures-with-imagemagick/</a><br
/> (massive resizing, adding text or frames to images, etc, all with ImageMagick)</p> ]]></content:encoded> </item> <item><title>By: Alejandro G. Bedoya</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-27618</link> <dc:creator>Alejandro G. Bedoya</dc:creator> <pubDate>Tue, 14 Nov 2006 06:50:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-27618</guid> <description>find . -name \*.jpg -exec convert {} -resize 25% th_{} \;</description> <content:encoded><![CDATA[<p>find . -name \*.jpg -exec convert {} -resize 25% th_{} \;</p> ]]></content:encoded> </item> <item><title>By: LinuxTitli</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19318</link> <dc:creator>LinuxTitli</dc:creator> <pubDate>Tue, 06 Dec 2005 13:20:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19318</guid> <description>You are right tim. But main problem is we got all images in .png format and not .jpg format. However if it is in jpg format your script will save disk space and it is really optimized solution. Thanks for sharing with us, appreciate your post.</description> <content:encoded><![CDATA[<p>You are right tim. But main problem is we got all images in .png format and not .jpg format. However if it is in jpg format your script will save disk space and it is really optimized solution. Thanks for sharing with us, appreciate your post.</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19317</link> <dc:creator>Tim</dc:creator> <pubDate>Tue, 06 Dec 2005 05:55:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19317</guid> <description>Two comments here:
a) for batch purposes, you can either use a shell script or even the mogrify command (part of imagemagick):
bash$ for i in *.jpg
do
convert -scale &#039;48x38&#039; $i TN_$i
echo $i processed
done
mogrify -format jpg -quality &#039;95%&#039; *.tiff  (bulk-conversion)
b) For thumbnails, you quite often don&#039;t want to use imagemagick or convert or whatever; for my normal size (48x38), it creates a whopping huge 50K jpg when there are other ways of getting them much much smaller:
bash$ for i in *.jpg
do
djpeg $i &#124; pnmscale -xysize 48 38 &#124; cjpeg -opti -progr -qual &#039;75%&#039; &gt; TN_$i
echo $i processed
done
This keeps the average image-size down to about 1K - rather more suited to a page of thumbnails!
HTH</description> <content:encoded><![CDATA[<p>Two comments here:</p><p>a) for batch purposes, you can either use a shell script or even the mogrify command (part of imagemagick):</p><p>bash$ for i in *.jpg<br
/> do<br
/> convert -scale &#8217;48&#215;38&#8242; $i TN_$i<br
/> echo $i processed<br
/> done</p><p>mogrify -format jpg -quality &#8217;95%&#8217; *.tiff  (bulk-conversion)</p><p>b) For thumbnails, you quite often don&#8217;t want to use imagemagick or convert or whatever; for my normal size (48&#215;38), it creates a whopping huge 50K jpg when there are other ways of getting them much much smaller:</p><p>bash$ for i in *.jpg<br
/> do<br
/> djpeg $i | pnmscale -xysize 48 38 | cjpeg -opti -progr -qual &#8217;75%&#8217; &gt; TN_$i<br
/> echo $i processed<br
/> done</p><p>This keeps the average image-size down to about 1K &#8211; rather more suited to a page of thumbnails!</p><p>HTH</p> ]]></content:encoded> </item> <item><title>By: LinuxTitli</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19316</link> <dc:creator>LinuxTitli</dc:creator> <pubDate>Mon, 05 Dec 2005 11:33:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19316</guid> <description>Well I have an agreement with my employer, the script is part of in house build software system, I wrote basic script and later they modified it for web based software, so I can&#039;t put it on line until and unless they give me permission (copyright sucks)</description> <content:encoded><![CDATA[<p>Well I have an agreement with my employer, the script is part of in house build software system, I wrote basic script and later they modified it for web based software, so I can&#8217;t put it on line until and unless they give me permission (copyright sucks)</p> ]]></content:encoded> </item> <item><title>By: riscphree</title><link>http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19315</link> <dc:creator>riscphree</dc:creator> <pubDate>Mon, 05 Dec 2005 03:16:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html#comment-19315</guid> <description>Wow, that is awesome!
But why cant you put the perl script here?</description> <content:encoded><![CDATA[<p>Wow, that is awesome!</p><p>But why cant you put the perl script here?</p> ]]></content:encoded> </item> </channel> </rss>
