<?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: Converting Image File Formats with the Command Line &amp; sips</title>
	<atom:link href="http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/feed/" rel="self" type="application/rss+xml" />
	<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/</link>
	<description>News, tips, software, reviews, and more for Mac OS X, iPhone, iPad</description>
	<lastBuildDate>Tue, 18 Jun 2013 21:04:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Lauri Ranta</title>
		<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/#comment-478269</link>
		<dc:creator>Lauri Ranta</dc:creator>
		<pubDate>Mon, 21 Jan 2013 12:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=35374#comment-478269</guid>
		<description>One shortcoming with sips (and Automator and Preview) is that they always use a resizing method like bilinear in CS applications, so images that are made smaller can look blurry unless you add sharpening to them manually. And sips doesn&#039;t have many commonly needed resizing or cropping options.

It&#039;s probably better to learn to use ImageMagick. This would make images smaller if they are 501px or wider and convert them to jpg:

for f in *.png; do convert  -filter lanczos2 -format jpg -quality 90 -resize &#039;500x&gt;&#039; &quot;$f&quot; &quot;${f%png}jpg&quot;; done

mogrify modifies images in place:

mogrify -filter lanczos2 -resize 70% *.png</description>
		<content:encoded><![CDATA[<p>One shortcoming with sips (and Automator and Preview) is that they always use a resizing method like bilinear in CS applications, so images that are made smaller can look blurry unless you add sharpening to them manually. And sips doesn&#x27;t have many commonly needed resizing or cropping options.</p>
<p>It&#x27;s probably better to learn to use ImageMagick. This would make images smaller if they are 501px or wider and convert them to jpg:</p>
<p>for f in *.png; do convert  -filter lanczos2 -format jpg -quality 90 -resize &#x27;500x&gt;&#x27; &#x22;$f&#x22; &#x22;${f%png}jpg&#x22;; done</p>
<p>mogrify modifies images in place:</p>
<p>mogrify -filter lanczos2 -resize 70% *.png</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bern</title>
		<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/#comment-476308</link>
		<dc:creator>Bern</dc:creator>
		<pubDate>Thu, 17 Jan 2013 18:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=35374#comment-476308</guid>
		<description>Picasa, all graphic and from anywhere in the pictures, preview or thumbnails just hit export and choose your size</description>
		<content:encoded><![CDATA[<p>Picasa, all graphic and from anywhere in the pictures, preview or thumbnails just hit export and choose your size</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/#comment-474513</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 11 Jan 2013 22:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=35374#comment-474513</guid>
		<description>Very smart, love this thanks!</description>
		<content:encoded><![CDATA[<p>Very smart, love this thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/#comment-474493</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 11 Jan 2013 22:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=35374#comment-474493</guid>
		<description>If you change the batch command to use bash variable pattern substitution, then you can prevent the resulting file name from having two extensions. 
Example 1:

for i in *.jpeg; do sips -s format png $i --out Converted/${i%jpeg}png;done

Example 2:
for i in *.jpeg; do sips -s format png $i --out Converted/${i/%\.jpeg/\.png};done</description>
		<content:encoded><![CDATA[<p>If you change the batch command to use bash variable pattern substitution, then you can prevent the resulting file name from having two extensions.<br />
Example 1:</p>
<p>for i in *.jpeg; do sips -s format png $i &#8211;out Converted/${i%jpeg}png;done</p>
<p>Example 2:<br />
for i in *.jpeg; do sips -s format png $i &#8211;out Converted/${i/%\.jpeg/\.png};done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steebz</title>
		<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/#comment-474432</link>
		<dc:creator>Steebz</dc:creator>
		<pubDate>Fri, 11 Jan 2013 19:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=35374#comment-474432</guid>
		<description>I do this with Preview, no offense to the unix gods but I think it&#039;s a lot easier.</description>
		<content:encoded><![CDATA[<p>I do this with Preview, no offense to the unix gods but I think it&#8217;s a lot easier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adam</title>
		<link>http://osxdaily.com/2013/01/11/converting-image-file-formats-with-the-command-line-sips/#comment-474430</link>
		<dc:creator>adam</dc:creator>
		<pubDate>Fri, 11 Jan 2013 19:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://osxdaily.com/?p=35374#comment-474430</guid>
		<description>coreimage is more powerful,
but need to add the binaries ;)</description>
		<content:encoded><![CDATA[<p>coreimage is more powerful,<br />
but need to add the binaries <img src='http://cdn.osxdaily.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/3 queries in 0.022 seconds using disk: basic
Object Caching 248/249 objects using disk: basic
Content Delivery Network via cdn.osxdaily.com

Served from: osxdaily.com @ 2013-06-18 18:16:41 -->