<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Owned By eL-CeWaD / Millikuvvetler.Net &#187; ImageMagick</title>
	<atom:link href="http://thecssbug.com/category/imagemagick/feed" rel="self" type="application/rss+xml" />
	<link>http://thecssbug.com</link>
	<description>Owned By eL-CeWaD / Millikuvvetler.Net</description>
	<lastBuildDate>Wed, 28 Mar 2012 11:23:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ImageMagick strip exif (PHP)</title>
		<link>http://thecssbug.com/imagemagik-strip-exif-php</link>
		<comments>http://thecssbug.com/imagemagik-strip-exif-php#comments</comments>
		<pubDate>Tue, 21 Apr 2009 12:01:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[badorgood]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[strip]]></category>

		<guid isPermaLink="false">http://thecssbug.com/?p=78</guid>
		<description><![CDATA[ImageMagick is probably the best option we have when dealing with image resizing, croping and other small editing jobs that we need when working with image uploads.
As I am running a photography website, where community members are sometimes uploading images straight out of their digital cameras, I came across the following problem:
Digital cameras usually add [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ImageMagick</strong> is probably the best option we have when dealing with image resizing, croping and other small editing jobs that we need when working with image uploads.</p>
<p>As I am running a <a href="http://www.badorgood.com">photography website</a>, where community members are sometimes uploading images straight out of their digital cameras, I came across the following problem:</p>
<p>Digital cameras usually add a lot of extra information in the <strong>EXIF</strong> section of the JPEG file (regarding camera type, camera settings or the exposure conditions under which the shot was taken). When creating thumbnails for images, using the <em>resize</em> or <em>crop</em> functions from <strong>ImageMagick</strong>, all this extra information is kept inside the resized thumbnail, adding significant overhead to the resulting file. For instance a small thumbnail 48 by 48 px (like a member&#8217;s avatar picture) could take over up to 40 Kb if the file contains <strong>EXIF</strong> information, instead of abou 8 Kb without EXIF. Considering  you could have about 50 avatars beeing loaded on a page, reducing the size of the thumbnails could have an important effect on your page loading time.</p>
<p>The solution to this problem is quite trivial. All you have to do is add an extra parameter to your <em>convert</em> command: <em>- strip</em></p>
<p>So if your convert command looked like this:</p>
<pre class="brush: php">

exec(&#039;convert &#039;.$source_file.&#039;  48x48 &#039;.$destination_file.&#039;&#039;);
</pre>
<p>The stripped version would be:</p>
<pre class="brush: php">

exec(&#039;convert &#039;.$source_file.&#039;  -strip 48x48 &#039;.$destination_file.&#039;&#039;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thecssbug.com/imagemagik-strip-exif-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

