<?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: ZoomifyImage ported to PHP</title>
	<atom:link href="http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/</link>
	<description>by Justin D. Henry</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:28:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Shadi Alian</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2106</link>
		<dc:creator>Shadi Alian</dc:creator>
		<pubDate>Fri, 18 Nov 2011 15:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2106</guid>
		<description>I am using the script to generate tiles but i am running into a problem, the original images have transparent background but the generated tiles have black background. is there a way we can keep the transparent background.</description>
		<content:encoded><![CDATA[<p>I am using the script to generate tiles but i am running into a problem, the original images have transparent background but the generated tiles have black background. is there a way we can keep the transparent background.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2089</link>
		<dc:creator>Blake</dc:creator>
		<pubDate>Fri, 17 Dec 2010 00:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2089</guid>
		<description>For anyone who can&#039;t figure out the stretching issue go to line 235 and change the dst_h value to $secondRowHeight. This will fix your stretching issue.</description>
		<content:encoded><![CDATA[<p>For anyone who can&#8217;t figure out the stretching issue go to line 235 and change the dst_h value to $secondRowHeight. This will fix your stretching issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferry</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2034</link>
		<dc:creator>Ferry</dc:creator>
		<pubDate>Thu, 30 Jul 2009 14:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2034</guid>
		<description>Can anybody post the exact code changes of Ryan&#039;s solution to fix the distortion of the last row, please? I tried to change several lines, but I don&#039;t exactly understand what lines I need to change.</description>
		<content:encoded><![CDATA[<p>Can anybody post the exact code changes of Ryan&#8217;s solution to fix the distortion of the last row, please? I tried to change several lines, but I don&#8217;t exactly understand what lines I need to change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Logan Waggoner</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2012</link>
		<dc:creator>Logan Waggoner</dc:creator>
		<pubDate>Thu, 25 Jun 2009 09:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2012</guid>
		<description>Can verify bug with subdirectories containing a &quot;.&quot; in them

Also, the above poster forgot to mention the bug occurs in 2 places, the processImage() function and the processRowImage function.

ADD THIS FUNCTION IN (I PUT IT ABOVE processImage() )

 function getRoot()
  {
	  	$exploded_items = explode(&quot;.&quot;,$this-&gt;_v_imageFilename) ;
		$ext = array_pop($exploded_items);
		$root = implode(&quot;.&quot;, $exploded_items);
  }

Replace $this-&gt;getRoot(); 

with all occurances of:

list($root, $ext) = explode(”.”,$this-&gt;_v_imageFilename) ;

There is a point where another explode occurs in the createDataContainer function, but it works. Also, if you turn on debug the directories are displayed incorrectly. However it works correctly.</description>
		<content:encoded><![CDATA[<p>Can verify bug with subdirectories containing a &#8220;.&#8221; in them</p>
<p>Also, the above poster forgot to mention the bug occurs in 2 places, the processImage() function and the processRowImage function.</p>
<p>ADD THIS FUNCTION IN (I PUT IT ABOVE processImage() )</p>
<p> function getRoot()<br />
  {<br />
	  	$exploded_items = explode(&#8220;.&#8221;,$this-&gt;_v_imageFilename) ;<br />
		$ext = array_pop($exploded_items);<br />
		$root = implode(&#8220;.&#8221;, $exploded_items);<br />
  }</p>
<p>Replace $this-&gt;getRoot(); </p>
<p>with all occurances of:</p>
<p>list($root, $ext) = explode(”.”,$this-&gt;_v_imageFilename) ;</p>
<p>There is a point where another explode occurs in the createDataContainer function, but it works. Also, if you turn on debug the directories are displayed incorrectly. However it works correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2010</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Tue, 16 Jun 2009 09:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2010</guid>
		<description>Today I&#039;ve tryed Python script for convert image... I got the same problem: He create the &quot;TileGroupXX&quot; directories, consumes 99% of ram and between 50 &amp; 90% of processor during 3 minutes and *Pouf* -&gt; [1]+ Processus arrêté   python ZoomifyFileProcessor.py /var/www/begroup/z/images/z/heic0707a.jpg

I really need help on this case! Thanks anyway for this good port!

You cna find this picture here: http://www.spacetelescope.org/images/original/heic0707a.tif (~500MiB in tif, ~200 in jpeg at 100%)</description>
		<content:encoded><![CDATA[<p>Today I&#8217;ve tryed Python script for convert image&#8230; I got the same problem: He create the &#8220;TileGroupXX&#8221; directories, consumes 99% of ram and between 50 &amp; 90% of processor during 3 minutes and *Pouf* -&gt; [1]+ Processus arrêté   python ZoomifyFileProcessor.py /var/www/begroup/z/images/z/heic0707a.jpg</p>
<p>I really need help on this case! Thanks anyway for this good port!</p>
<p>You cna find this picture here: <a href="http://www.spacetelescope.org/images/original/heic0707a.tif" rel="nofollow">http://www.spacetelescope.org/images/original/heic0707a.tif</a> (~500MiB in tif, ~200 in jpeg at 100%)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2009</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2009</guid>
		<description>I&#039;m still trying to convert (really) big images and got a (kind of) timeout.

Using PHP CLI on Debian/Celeron 1.20+ GHz/1Go DDR2 and a 220MiB jpeg, i&#039;m waiting ~3 minutes with the message &quot;openImage /var/www/begroup/z/images/heic0707a.jpg&quot; and getting a &quot;Process Endend&quot; (&quot;Processus arrêté&quot; in my natural language).

I&#039;ve put ob_flush() / flush() after all debug message and ini_set (&#039;max_execution_time&#039;, 0) / ini_set (&#039;set_time_limit&#039;, 0) on after &quot;list($ul_y, $lr_y) = array(0,0);&quot; in the function processImage()...

They&#039;re is anybody who try to convert big (100MiB or more (and when I say more I mean MORE like +1GiB!!)) and succeeded?
They&#039;re is any workaround to fix this?
It&#039;s the PHP&#039;s fault ? Linux fault ? Memory&#039;s fault ? Both ?</description>
		<content:encoded><![CDATA[<p>I&#8217;m still trying to convert (really) big images and got a (kind of) timeout.</p>
<p>Using PHP CLI on Debian/Celeron 1.20+ GHz/1Go DDR2 and a 220MiB jpeg, i&#8217;m waiting ~3 minutes with the message &#8220;openImage /var/www/begroup/z/images/heic0707a.jpg&#8221; and getting a &#8220;Process Endend&#8221; (&#8220;Processus arrêté&#8221; in my natural language).</p>
<p>I&#8217;ve put ob_flush() / flush() after all debug message and ini_set (&#8216;max_execution_time&#8217;, 0) / ini_set (&#8216;set_time_limit&#8217;, 0) on after &#8220;list($ul_y, $lr_y) = array(0,0);&#8221; in the function processImage()&#8230;</p>
<p>They&#8217;re is anybody who try to convert big (100MiB or more (and when I say more I mean MORE like +1GiB!!)) and succeeded?<br />
They&#8217;re is any workaround to fix this?<br />
It&#8217;s the PHP&#8217;s fault ? Linux fault ? Memory&#8217;s fault ? Both ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-2008</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-2008</guid>
		<description>Thanks, this script is really nice and usefull!</description>
		<content:encoded><![CDATA[<p>Thanks, this script is really nice and usefull!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: K James</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-1994</link>
		<dc:creator>K James</dc:creator>
		<pubDate>Thu, 09 Apr 2009 16:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-1994</guid>
		<description>Some of our subdirectorys have dots in so I neede to replace some code:

ZoomifyFileProcessor.php

line:337
        list($root, $ext) = explode(&quot;.&quot;,$this-&gt;_v_imageFilename)  ;
became:
        $exploded_items = explode(&quot;.&quot;,$this-&gt;_v_imageFilename)  ;
	$ext = array_pop($exploded_items);
	$root = implode(&quot;.&quot;, $exploded_items);</description>
		<content:encoded><![CDATA[<p>Some of our subdirectorys have dots in so I neede to replace some code:</p>
<p>ZoomifyFileProcessor.php</p>
<p>line:337<br />
        list($root, $ext) = explode(&#8220;.&#8221;,$this-&gt;_v_imageFilename)  ;<br />
became:<br />
        $exploded_items = explode(&#8220;.&#8221;,$this-&gt;_v_imageFilename)  ;<br />
	$ext = array_pop($exploded_items);<br />
	$root = implode(&#8220;.&#8221;, $exploded_items);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bauer</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-1954</link>
		<dc:creator>John Bauer</dc:creator>
		<pubDate>Wed, 26 Nov 2008 20:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-1954</guid>
		<description>Hello, I found the problem with PHP5.  In the utility function imageCrop in ZoomifyFileProcessor.php line 59 references $this-&gt;_debug however the function is not a member of a class: 

/* &lt;CODE&gt;: Line 59 ZoomifyFileProcessor.php */
if ($this-&gt;_debug) print &quot;imageCrop x=$x y=$y left=$left upper=$upper right=$right lower=$lower\n&quot;;
/* &lt;/CODE&gt; */

It&#039;s not a method on the ZoomifyFileProcessor class, I&#039;m guessing PHP5 is more strict with variable scope. 

John</description>
		<content:encoded><![CDATA[<p>Hello, I found the problem with PHP5.  In the utility function imageCrop in ZoomifyFileProcessor.php line 59 references $this-&gt;_debug however the function is not a member of a class: </p>
<p>/* <code>: Line 59 ZoomifyFileProcessor.php */<br />
if ($this-&gt;_debug) print &#8220;imageCrop x=$x y=$y left=$left upper=$upper right=$right lower=$lower\n&#8221;;<br />
/* </code> */</p>
<p>It&#8217;s not a method on the ZoomifyFileProcessor class, I&#8217;m guessing PHP5 is more strict with variable scope. </p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/comment-page-1/#comment-1914</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 17 Oct 2008 20:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://greengaloshes.cc/2007/05/zoomifyimage-ported-to-php/#comment-1914</guid>
		<description>To fix the distortion of the last row....

Change the dst_h of the resize and resample calls to the src_h.  This will prevent stretching of the tile.</description>
		<content:encoded><![CDATA[<p>To fix the distortion of the last row&#8230;.</p>
<p>Change the dst_h of the resize and resample calls to the src_h.  This will prevent stretching of the tile.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

