<?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"
	>
<channel>
	<title>Comments on: FileColumn: regenerate images</title>
	<atom:link href="http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/feed/" rel="self" type="application/rss+xml" />
	<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 13:55:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Alexander Lang</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-8640</link>
		<dc:creator>Alexander Lang</dc:creator>
		<pubDate>Sun, 10 Feb 2008 20:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-8640</guid>
		<description>i think you are right. capitalize works as long as the class name only consists of one word, which has been the case for all our classes so far.</description>
		<content:encoded><![CDATA[<p>i think you are right. capitalize works as long as the class name only consists of one word, which has been the case for all our classes so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sascha</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-8359</link>
		<dc:creator>Sascha</dc:creator>
		<pubDate>Wed, 06 Feb 2008 14:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-8359</guid>
		<description>I changed class_name.to_s.capitalize to class_name.to_s.classify, because calling update_model(:common_page_asset, :asset) was not working with capitalize. Maybe i misunderstood your parameter convention or the script has to be changed when using model names with underscores. However, thanks for the script!</description>
		<content:encoded><![CDATA[<p>I changed class_name.to_s.capitalize to class_name.to_s.classify, because calling update_model(:common_page_asset, :asset) was not working with capitalize. Maybe i misunderstood your parameter convention or the script has to be changed when using model names with underscores. However, thanks for the script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thilo</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-2896</link>
		<dc:creator>thilo</dc:creator>
		<pubDate>Fri, 07 Sep 2007 10:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-2896</guid>
		<description>Hi Homan, thanks for your insight. Are u sure that it can't access the version information? Because I have to provide the model object anyway (e.g. url_for_image_column(@auto, 'photo', :badge_5) . And as far a I can see it always ends up in create_magick_version_if_needed. And it works just fine for us, deleting just specific versions. Because it checks each version, as it can be seen in the above mentioned method, here 'File.exists?(absolute_path(version_options[:name]))'. We just use it in one case, so maybe it just works by coincident. But I hope not ;) </description>
		<content:encoded><![CDATA[<p>Hi Homan, thanks for your insight. Are u sure that it can&#8217;t access the version information? Because I have to provide the model object anyway (e.g. url_for_image_column(@auto, &#8216;photo&#8217;, :badge_5) . And as far a I can see it always ends up in create_magick_version_if_needed. And it works just fine for us, deleting just specific versions. Because it checks each version, as it can be seen in the above mentioned method, here &#8216;File.exists?(absolute_path(version_options[:name]))&#8217;. We just use it in one case, so maybe it just works by coincident. But I hope not <img src='http://upstream-berlin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homan</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-2886</link>
		<dc:creator>Homan</dc:creator>
		<pubDate>Thu, 06 Sep 2007 22:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-2886</guid>
		<description>There are some conditions as to whether url_for_image_column will regenerate a new image version on the fly.  File_column places the master version in the directory:

model_name/column_name/record_id/image_name.ext

Alternate named versions like 'thumb' will be placed in the same directory but in a folder of the same version name:

model_name/column_name/record_id/thumb/image_name.ext

Now, if you delete the image in the thumb directory, no new image will be regenerated.  You just get a broken link.  If however, you delete the thumb directory entirely, url_for_image_column will attempt to generate a new named version for you.  However, it is not smart enough to determine the size from the versions information defined in the model, you must specify the crop and size options in the url_for_image_column parameters.</description>
		<content:encoded><![CDATA[<p>There are some conditions as to whether url_for_image_column will regenerate a new image version on the fly.  File_column places the master version in the directory:</p>
<p>model_name/column_name/record_id/image_name.ext</p>
<p>Alternate named versions like &#8216;thumb&#8217; will be placed in the same directory but in a folder of the same version name:</p>
<p>model_name/column_name/record_id/thumb/image_name.ext</p>
<p>Now, if you delete the image in the thumb directory, no new image will be regenerated.  You just get a broken link.  If however, you delete the thumb directory entirely, url_for_image_column will attempt to generate a new named version for you.  However, it is not smart enough to determine the size from the versions information defined in the model, you must specify the crop and size options in the url_for_image_column parameters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-2486</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sat, 25 Aug 2007 08:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-2486</guid>
		<description>Thanks Thilo!

I had never heard of url_for_image_column before.  Once I started searching for it, the only good documentation I found was in the source files themselves.  That has accomplished exactly what I needed.</description>
		<content:encoded><![CDATA[<p>Thanks Thilo!</p>
<p>I had never heard of url_for_image_column before.  Once I started searching for it, the only good documentation I found was in the source files themselves.  That has accomplished exactly what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thilo</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-2407</link>
		<dc:creator>Thilo</dc:creator>
		<pubDate>Tue, 21 Aug 2007 08:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-2407</guid>
		<description>We don't integrate the script in our site. We ran it on demand. Because it regnerate all images. This puts serious load on our serve ran took a couple of days. 

If you need new inmage versions on demand it is better to use: url_for_image_column. It checks if a version exitst and renerate it if not. But it can't update geometrie of existing versions. Hope that helps.</description>
		<content:encoded><![CDATA[<p>We don&#8217;t integrate the script in our site. We ran it on demand. Because it regnerate all images. This puts serious load on our serve ran took a couple of days. </p>
<p>If you need new inmage versions on demand it is better to use: url_for_image_column. It checks if a version exitst and renerate it if not. But it can&#8217;t update geometrie of existing versions. Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://upstream-berlin.com/2007/08/12/filecolumn-regenerate-images/#comment-2378</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sun, 19 Aug 2007 19:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://upstream-berlin.com/blog/2007/08/12/filecolumn-regenerate-images/#comment-2378</guid>
		<description>Great workaround Thilo!

I apologize if this is a trivial question, but how would one integrate this into their Rails site?  It seems like there would be several possibilities, so how would you do it?</description>
		<content:encoded><![CDATA[<p>Great workaround Thilo!</p>
<p>I apologize if this is a trivial question, but how would one integrate this into their Rails site?  It seems like there would be several possibilities, so how would you do it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
