<?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: Flash and XML Gallery BETA</title>
	<atom:link href="http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/feed" rel="self" type="application/rss+xml" />
	<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html</link>
	<description>AJAX, Flash, Actionscript, PHP, MySQL.... the tools of the modern developer!</description>
	<lastBuildDate>Sat, 15 Aug 2009 23:05:35 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: andres</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-521</link>
		<dc:creator>andres</dc:creator>
		<pubDate>Sat, 15 Aug 2009 23:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-521</guid>
		<description>hello i need to change the color of the titles images.. because they are white.. and my backgroung color is very near to white... can I do something?

thanks</description>
		<content:encoded><![CDATA[<p>hello i need to change the color of the titles images.. because they are white.. and my backgroung color is very near to white&#8230; can I do something?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ty</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-364</link>
		<dc:creator>Ty</dc:creator>
		<pubDate>Mon, 08 Sep 2008 21:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-364</guid>
		<description>Can we resize the images? If the image too big it will cut off. if smaller than 800x600 images display on the left and not align. It would be great to have these features.</description>
		<content:encoded><![CDATA[<p>Can we resize the images? If the image too big it will cut off. if smaller than 800&#215;600 images display on the left and not align. It would be great to have these features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elt0n</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-362</link>
		<dc:creator>elt0n</dc:creator>
		<pubDate>Sun, 07 Sep 2008 15:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-362</guid>
		<description>Hey man,

Nice, very nice flash app. I downloaded it as a test. Putting ideas together for our new website. Unfortunately when I downloaded it the images in Portrait orientation don&#039;t &quot;fit-to-screen&quot; in the window, i just get a grey line up the right hand side???? It works fine on your site on my PC, but when I download an test it doesn&#039;t. any idea???
would love to play with the FLA.. Credits and stuff to you of course and a link from our NEW website page!!  
Cheers mate,

elt0n, UK.</description>
		<content:encoded><![CDATA[<p>Hey man,</p>
<p>Nice, very nice flash app. I downloaded it as a test. Putting ideas together for our new website. Unfortunately when I downloaded it the images in Portrait orientation don&#8217;t &#8220;fit-to-screen&#8221; in the window, i just get a grey line up the right hand side???? It works fine on your site on my PC, but when I download an test it doesn&#8217;t. any idea???<br />
would love to play with the FLA.. Credits and stuff to you of course and a link from our NEW website page!!<br />
Cheers mate,</p>
<p>elt0n, UK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariani Diego</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-347</link>
		<dc:creator>Mariani Diego</dc:creator>
		<pubDate>Tue, 02 Sep 2008 20:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-347</guid>
		<description>Hallo, 

I have make a importing function in PHP. This file convert your image in 800x600 pixel and 70x70 pixel.

use:

1) create a &quot;$root/import/&quot; folder
2) copy your image in the &quot;$root/import/&quot; folder
3) create a $root/import.php file whit this code:

&lt;?php

	global $nome_file,$estensione_file;
	
	function estensione_file($nome_originale){
	$estensione_file=substr(strtolower(strrchr(trim($nome_originale),&quot;.&quot;)),0);
	return $estensione_file;
	}
	
	function scrivi_file($fp, $nome_file){
	
		fwrite($fp, &#039;&#039;);
		fwrite($fp, &quot;images/$nome_file&quot; );
		fwrite($fp, &quot;thumb/$nome_file&quot; );
		fwrite($fp, &quot;$nome_file&quot; );
		fwrite($fp, &#039;&#039; . &quot;\n&quot;);
		
	return true;
	}

	
	
	
	// open file
	copy (&#039;./images.xml&#039;,&#039;./_images.xml&#039;);
	$fp = fopen(&quot;./images.xml&quot;, &quot;w&quot;);
	if (!$fp)
	{
		print &quot;Errore: Impossibile aprire il file!&quot;;
		exit;
	}
	
	fwrite($fp, &#039;&#039; . $capo);
	fwrite($fp, &#039;&#039; . $capo);
	
	
	$dir = opendir(&quot;./import/&quot;);
	while(false != ($file = readdir($dir)))
	{
		if ( $file != &quot;.&quot; and $file != &quot;..&quot; and $file[0] != &quot;_&quot;)
		{
				
				print ($file . &quot;\n\r&quot;);
				
				  $percorsofile = &quot;./import/&quot; . $file;
			      $dimt=getimagesize($percorsofile);
				  $img = $percorsofile;
		          $w=$dimt[0];
		          $h=$dimt[1];
				  
				  $percentuale_w = 100 / ($dimt[0] / 800);
				  $percentuale_h = 100 / ($dimt[1] / 600);
				  if ($percentuale_w &gt; $percentuale_h) $percentuale1 = $percentuale_h; else $percentuale1 = $percentuale_w; 
				  
				  $v_perc=$percentuale1/100;
		          $nw1=$w*$v_perc;
		          $nh1=$h*$v_perc;
		          
				  $percentuale_w = 100 / ($dimt[0] / 70);
				  $percentuale_h = 100 / ($dimt[1] / 70);
				  if ($percentuale_w &gt; $percentuale_h) $percentuale2 = $percentuale_h; else $percentuale2 = $percentuale_w; 
				  
				  $v_perc=$percentuale2/100;
		          $nw2=$w*$v_perc;
		          $nh2=$h*$v_perc;

				  
		    if(estensione_file($img)==&quot;.jpg&quot;){
			
				  print (&quot;trovato jpeg&quot;);
		          
				  // full
				  $im=imagecreatefromjpeg($percorsofile);
		          $out=imagecreatetruecolor($nw1,$nh1);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
		          imagejpeg($out,&quot;./images/&quot; . $file);
		          imagedestroy($out);
				  
				  //thumb
				  $out=imagecreatetruecolor($nw2,$nh2);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
		          imagejpeg($out,&quot;./thumb/&quot; . $file);
		          imagedestroy($out);
				  
				  scrivi_file($fp, $file);
				  
				  
		    }else if(estensione_file($img)==&quot;.gif&quot;){
			
				  print (&quot;trovato gif&quot;);
				  
				  //full
		          $im=imagecreatefromgif($percorsofile);
		          $out=imagecreatetruecolor($nw1,$nh1);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
		          imagegif($out,&quot;./images/&quot; . $file);
		          imagedestroy($out);
				  
				  //thumb
		          $im=imagecreatefromgif($percorsofile);
		          $out=imagecreatetruecolor($nw2,$nh2);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
		          imagegif($out,&quot;./thumb/&quot; . $file);
		          imagedestroy($out);
				  
				  scrivi_file($fp, $file);
				  
		    }else if(estensione_file($img)==&quot;.png&quot;){
			
				  print (&quot;trovato png&quot;);
				  
				  //full
		          $im=imagecreatefrompng($percorsofile);
		          $out=imagecreatetruecolor($nw1,$nh1);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
		          imagepng($out,&quot;./images/&quot; . $file);
		          imagedestroy($out);
				  
				  //thumb
		          $im=imagecreatefrompng($percorsofile);
		          $out=imagecreatetruecolor($nw2,$nh2);
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
		          imagepng($out,&quot;./thumb/&quot; . $file);
		          imagedestroy($out);
				  
				  scrivi_file($fp, $file);
				  
		    }  

		}
	
	}
	
	fwrite($fp, &#039;&#039; . $capo);
	
	fclose($fp);
?&gt;

4) open in your browser the $root/import.php file</description>
		<content:encoded><![CDATA[<p>Hallo, </p>
<p>I have make a importing function in PHP. This file convert your image in 800&#215;600 pixel and 70&#215;70 pixel.</p>
<p>use:</p>
<p>1) create a &#8220;$root/import/&#8221; folder<br />
2) copy your image in the &#8220;$root/import/&#8221; folder<br />
3) create a $root/import.php file whit this code:</p>
<p>&lt;?php</p>
<p>	global $nome_file,$estensione_file;</p>
<p>	function estensione_file($nome_originale){<br />
	$estensione_file=substr(strtolower(strrchr(trim($nome_originale),&#8221;.&#8221;)),0);<br />
	return $estensione_file;<br />
	}</p>
<p>	function scrivi_file($fp, $nome_file){</p>
<p>		fwrite($fp, &#8221;);<br />
		fwrite($fp, &#8220;images/$nome_file&#8221; );<br />
		fwrite($fp, &#8220;thumb/$nome_file&#8221; );<br />
		fwrite($fp, &#8220;$nome_file&#8221; );<br />
		fwrite($fp, &#8221; . &#8220;\n&#8221;);</p>
<p>	return true;<br />
	}</p>
<p>	// open file<br />
	copy (&#8216;./images.xml&#8217;,&#8217;./_images.xml&#8217;);<br />
	$fp = fopen(&#8220;./images.xml&#8221;, &#8220;w&#8221;);<br />
	if (!$fp)<br />
	{<br />
		print &#8220;Errore: Impossibile aprire il file!&#8221;;<br />
		exit;<br />
	}</p>
<p>	fwrite($fp, &#8221; . $capo);<br />
	fwrite($fp, &#8221; . $capo);</p>
<p>	$dir = opendir(&#8220;./import/&#8221;);<br />
	while(false != ($file = readdir($dir)))<br />
	{<br />
		if ( $file != &#8220;.&#8221; and $file != &#8220;..&#8221; and $file[0] != &#8220;_&#8221;)<br />
		{</p>
<p>				print ($file . &#8220;\n\r&#8221;);</p>
<p>				  $percorsofile = &#8220;./import/&#8221; . $file;<br />
			      $dimt=getimagesize($percorsofile);<br />
				  $img = $percorsofile;<br />
		          $w=$dimt[0];<br />
		          $h=$dimt[1];</p>
<p>				  $percentuale_w = 100 / ($dimt[0] / 800);<br />
				  $percentuale_h = 100 / ($dimt[1] / 600);<br />
				  if ($percentuale_w &gt; $percentuale_h) $percentuale1 = $percentuale_h; else $percentuale1 = $percentuale_w; </p>
<p>				  $v_perc=$percentuale1/100;<br />
		          $nw1=$w*$v_perc;<br />
		          $nh1=$h*$v_perc;</p>
<p>				  $percentuale_w = 100 / ($dimt[0] / 70);<br />
				  $percentuale_h = 100 / ($dimt[1] / 70);<br />
				  if ($percentuale_w &gt; $percentuale_h) $percentuale2 = $percentuale_h; else $percentuale2 = $percentuale_w; </p>
<p>				  $v_perc=$percentuale2/100;<br />
		          $nw2=$w*$v_perc;<br />
		          $nh2=$h*$v_perc;</p>
<p>		    if(estensione_file($img)==&#8221;.jpg&#8221;){</p>
<p>				  print (&#8220;trovato jpeg&#8221;);</p>
<p>				  // full<br />
				  $im=imagecreatefromjpeg($percorsofile);<br />
		          $out=imagecreatetruecolor($nw1,$nh1);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);<br />
		          imagejpeg($out,&#8221;./images/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  //thumb<br />
				  $out=imagecreatetruecolor($nw2,$nh2);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);<br />
		          imagejpeg($out,&#8221;./thumb/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  scrivi_file($fp, $file);</p>
<p>		    }else if(estensione_file($img)==&#8221;.gif&#8221;){</p>
<p>				  print (&#8220;trovato gif&#8221;);</p>
<p>				  //full<br />
		          $im=imagecreatefromgif($percorsofile);<br />
		          $out=imagecreatetruecolor($nw1,$nh1);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);<br />
		          imagegif($out,&#8221;./images/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  //thumb<br />
		          $im=imagecreatefromgif($percorsofile);<br />
		          $out=imagecreatetruecolor($nw2,$nh2);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);<br />
		          imagegif($out,&#8221;./thumb/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  scrivi_file($fp, $file);</p>
<p>		    }else if(estensione_file($img)==&#8221;.png&#8221;){</p>
<p>				  print (&#8220;trovato png&#8221;);</p>
<p>				  //full<br />
		          $im=imagecreatefrompng($percorsofile);<br />
		          $out=imagecreatetruecolor($nw1,$nh1);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);<br />
		          imagepng($out,&#8221;./images/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  //thumb<br />
		          $im=imagecreatefrompng($percorsofile);<br />
		          $out=imagecreatetruecolor($nw2,$nh2);<br />
		          imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);<br />
		          imagepng($out,&#8221;./thumb/&#8221; . $file);<br />
		          imagedestroy($out);</p>
<p>				  scrivi_file($fp, $file);</p>
<p>		    }  </p>
<p>		}</p>
<p>	}</p>
<p>	fwrite($fp, &#8221; . $capo);</p>
<p>	fclose($fp);<br />
?&gt;</p>
<p>4) open in your browser the $root/import.php file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-243</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 20 Aug 2008 16:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-243</guid>
		<description>Is there anyway to resize the flash gallery? My photos are small (about 500x300) and I&#039;d like to show them in the gallery. But right now, they appear left aligned with a lot of gray space. Resizing just removes the bar at the bottom.

Any ideas?</description>
		<content:encoded><![CDATA[<p>Is there anyway to resize the flash gallery? My photos are small (about 500&#215;300) and I&#8217;d like to show them in the gallery. But right now, they appear left aligned with a lot of gray space. Resizing just removes the bar at the bottom.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-239</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Mon, 11 Aug 2008 20:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-239</guid>
		<description>Hey,

Will you be making a version where images will be centered?  For instance, if the image is smaller then 800x600, it gets aligned to the left side, would be nice if those images were centered.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Will you be making a version where images will be centered?  For instance, if the image is smaller then 800&#215;600, it gets aligned to the left side, would be nice if those images were centered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: delice</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-238</link>
		<dc:creator>delice</dc:creator>
		<pubDate>Sat, 09 Aug 2008 11:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-238</guid>
		<description>Everythink ok. just how do I put the thumbnails to gallaery folder.This is what I could not understand.Thank you...</description>
		<content:encoded><![CDATA[<p>Everythink ok. just how do I put the thumbnails to gallaery folder.This is what I could not understand.Thank you&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satty</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-196</link>
		<dc:creator>Satty</dc:creator>
		<pubDate>Thu, 19 Jun 2008 20:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-196</guid>
		<description>Hi,
Thanks for sharing. Keep up the good work. 
Regards,
satty</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for sharing. Keep up the good work.<br />
Regards,<br />
satty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynd</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-192</link>
		<dc:creator>Lynd</dc:creator>
		<pubDate>Thu, 12 Jun 2008 06:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-192</guid>
		<description>Nice work! 
Thank you for sharing this great work. One suggestion, is it possible to make the large image always in the centre of the gallery?
Thanks again.</description>
		<content:encoded><![CDATA[<p>Nice work!<br />
Thank you for sharing this great work. One suggestion, is it possible to make the large image always in the centre of the gallery?<br />
Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriela</title>
		<link>http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html/comment-page-1#comment-182</link>
		<dc:creator>gabriela</dc:creator>
		<pubDate>Fri, 16 May 2008 09:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://developer.asymbio.net/flash_actionscript/flash-gallery-beta.html#comment-182</guid>
		<description>Hello,

A very nice tool and I thank you for it, but I have one issue with it...The portrait images are being resized or cropped as landscape. Is there any way to fix that?

Thank you and keep up the good work.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>A very nice tool and I thank you for it, but I have one issue with it&#8230;The portrait images are being resized or cropped as landscape. Is there any way to fix that?</p>
<p>Thank you and keep up the good work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
