<?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>Codrops &#187; upload</title>
	<atom:link href="http://tympanus.net/codrops/tag/upload/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Wed, 23 May 2012 09:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>URL Image Getter/Uploader/Resizer</title>
		<link>http://tympanus.net/codrops/2009/12/06/url-image-getteruploaderresizer/</link>
		<comments>http://tympanus.net/codrops/2009/12/06/url-image-getteruploaderresizer/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 20:56:43 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dom parser]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[upload]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=995</guid>
		<description><![CDATA[I was wondering how to get images from a site the same way like Digg or Facebook do, where it is only necessary to provide a link, and images get automatically uploaded to your server and resized. So, I decided to create a script that does exactly that and share it here. This PHP script [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-1000" title="urlImage" src="http://tympanus.net/codrops/wp-content/uploads/2009/12/urlImage.jpg" alt="urlImage" width="510" height="334" /></p>
<p>I was wondering how to get images from a site the same way like Digg or Facebook do, where it is only necessary to provide a link, and images get automatically uploaded to your server and resized. So, I decided to create a script that does exactly that and share it here.</p>
<p>This PHP script uses two php classes that I found on the web. One of them I have already used before in the &#8220;<a href="http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/" target="_blank">jQuery Image Cropper with Uploader</a>&#8221; and the &#8220;<a href="http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/" target="_blank">Dynamic jQuery Image Gallery with Uploader</a>&#8220;, the class.upload from <a href="http://www.verot.net" target="_blank">verot</a> . The other is a PHP html DOM Parser that can be found <a href="http://simplehtmldom.sourceforge.net/" target="_blank">here</a>.</p>
<p>In order to make this work, I had to change some few lines of code in verot&#8217;s class, so that URLs can be used to get images.  The DOM Parser is untouched. I also created a file (index.php) where both scripts are called. I first parse the URL, search for images and pass the url of the image to the class.upload script, which then uploads the image to a local directory (images/) and resizes it. In this script, the image size is changed to a width of 150 pixels but the ratio is kept. However, you can change these values and configure it the way you want. Take a look at the <a href="http://www.verot.net/res/sources/class.upload.html" target="_blank">documentation</a> of the class.upload so that you know what you can change. Also, you can specify how many images you want to save / display per request.</p>
<p>For the demo which has this blog as &#8220;target&#8221;, I have configured that only a restricted amount of images are saved and shown. Besides, you might notice that sometimes it displays more images than other times. This is caused by the limited amount of memory configured in the php.ini file (memory_limit), so you might wanna change this value to a proper one if you want to use this script. Again, on verot&#8217;s web site, in the forums,  there are some good calculations giving an idea of a suitable value.</p>
<p><a class="demo" href="http://tympanus.net/urlimages/" target="_blank">View demo</a><a class="download" href="http://tympanus.net/urlimages/urlimages.zip">Download source</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/12/06/url-image-getteruploaderresizer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>jQuery Image Cropper with Uploader v1.1</title>
		<link>http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/</link>
		<comments>http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 01:03:58 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=773</guid>
		<description><![CDATA[Here&#8217;s an updated version of the Image Cropper. The upload button was replaced by an overlay on the image. There are also some extra functionalities : invert the picture colors rotate the image sepia transforms an image into greyscale see the DEMO download the source code here]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="size-full wp-image-785 aligncenter" title="crop1_1" src="http://tympanus.net/codrops/wp-content/uploads/2009/11/crop1_11.png" alt="crop1_1" width="470" height="320" /></p>
<p>Here&#8217;s an updated version of the Image Cropper. The upload button was replaced by an overlay on the image. There are also some extra functionalities :</p>
<p><span id="more-773"></span></p>
<ul>
<li>invert the picture colors</li>
<li>rotate the image</li>
<li>sepia</li>
<li>transforms an image into greyscale</li>
</ul>
<p>see the <a href="http://tympanus.net/crop1.1/" target="_blank">DEMO</a><br />
download the source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/10/crop1.1.zip">here</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
		<item>
		<title>jQuery Image Cropper with Uploader</title>
		<link>http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/</link>
		<comments>http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 16:49:52 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[picture]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=692</guid>
		<description><![CDATA[Please check the updated version here! Some time ago I posted the Dynamic jQuery Image Gallery with Uploader which uses the class.upload, uploadify and ad-gallery scripts. This time I want to show how to integrate the class.upload and uploadify with the Jcrop script. The idea is that the user uploads a picture,  selects which area [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-694" title="jquery_cropper" src="http://tympanus.net/codrops/wp-content/uploads/2009/10/jquery_cropper1.jpg" alt="jquery_cropper" width="533" height="266" /></p>
<p style="text-align: center;"><strong>Please check the updated version <a href="http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/" target="_blank">here</a>!</strong></p>
<p>Some time ago I posted the <a href="http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/#more-426" target="_blank">Dynamic jQuery Image Gallery with Uploader</a> which uses the class.upload, uploadify and ad-gallery scripts. This time I want to show how to integrate the class.upload and uploadify with the <a href="http://deepliquid.com/content/Jcrop.html" target="_blank">Jcrop</a> script.</p>
<p>The idea is that the user uploads a picture,  selects which area to crop and saves it under a specific directory.<br />
The process then creates two images, one 100&#215;100 and a thumbnail of 50&#215;50. You can easly change the script to create the amount of pictures and sizes you need!</p>
<p><span id="more-692"></span>The example here is limited to .jpg images and no more than 800 kb. If you want to add more file types and increase the size, you can configure it when you call the uploadify script (index.php):</p>
<p><code>'fileExt'         : '*.jpg',<br />
'sizeLimit'      : '819200',//max size bytes - 800kb</code></p>
<p>and in upload.php:</p>
<p><code>$handle-&gt;file_max_size 			 = '819200'; // max size</code></p>
<p>Note that an usual error is due to the configuration of the &#8220;memory_limit&#8221; in php.ini. You should increase this value if you expect to upload larger images.</p>
<p>see the <a href="http://tympanus.net/crop/" target="_blank">DEMO</a><br />
download the source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/10/crop.zip">here</a><br />
<strong>Please check the updated version <a href="http://tympanus.net/codrops/2009/11/04/jquery-image-cropper-with-uploader-v1-1/" target="_blank">here</a>!</strong></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/10/17/jquery-image-cropper-with-uploader/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
		<item>
		<title>Dynamic jQuery Image Gallery with Uploader</title>
		<link>http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/</link>
		<comments>http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 13:30:26 +0000</pubDate>
		<dc:creator>chadking</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=426</guid>
		<description><![CDATA[Here&#8217;s a jQuery Image Gallery script with a multi file Uploader, that was implemented using three resources that I found on the web: uploadify ad-gallery class.upload.php click on the image to see a demo It&#8217;s easy to find a lot of good image galleries out there, a lot of upload scripts and thumbnail generators. But [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a jQuery Image Gallery script with a multi file Uploader, that was implemented using three resources that I found on the web:</p>
<ol>
<li><a href="http://www.uploadify.com/" target="_blank">uploadify</a></li>
<li><a href="http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/" target="_blank">ad-gallery </a></li>
<li><a href="http://www.verot.net/php_class_upload.htm" target="_blank">class.upload.php</a></li>
</ol>
<p><a href="http://tympanus.net/gallery/" target="_blank"><img class="alignnone size-full wp-image-429" src="http://tympanus.net/codrops/wp-content/uploads/2009/09/gallery.gif" alt="" width="600" height="379" /></a></p>
<p>click on the image to see a demo</p>
<p><span id="more-426"></span><br />
It&#8217;s easy to find a lot of good image galleries out there, a lot of upload scripts and thumbnail generators. But I found it hard to find one script that includes them all, so I decided to try to integrate them in one, which is actually what is interesting to have in a site. I basically put them together and added one or two functions to the whole thing, and added some Ajax script to load the pictures.<br />
So now, besides being able to see the gallery, which is pretty cool by the way, you can upload multiple image files (for this demo just jpg and gif, although you can configure what you want) next to it and have them added to the gallery on the fly, after the upload is finished (you can click on &#8220;last uploads&#8221; in the demo to see the last images). If you don&#8217;t want that the images are loaded immediatly after you upload them, then just remove the onAllComplete option in the innitialization of the uploadify plugin, in index.html.<br />
Because this is a demo I limited the pictures size that you can upload to 500kb, and you can just upload 5 at a time. Of course then you can configure this as you like.<br />
For the thumbs and images generator, I use the class.upload.php script  (very nice work), and I call it in the file uploadify.php. There you can configure the way you want your pictures to be generated, both original and thumbnail (for example the sizes, the filenames, the maximum size, if you want that pictures with the same name are replaced &#8230;). For this script I generate a hash for the name of the files, which will be always different. You can change that if you want&#8230; Remember that the folder where the pictures are stored (images and images/thumbs) should have the right permissions in order for you to upload your files.</p>
<p>I would suggest that you take a look at the possible configurations for each one of the scripts that I used:</p>
<ul>
<li>for the class.upload.php <a href="http://www.verot.net/res/sources/class.upload.html" target="_blank">here </a></li>
<li>for the uploadify <a href="http://www.uploadify.com/documentation/" target="_blank">here</a></li>
<li>for the ad-gallery <a href="http://coffeescripter.com/code/ad-gallery/" target="_blank">here</a></li>
</ul>
<p>see the <a href="http://tympanus.net/gallery/" target="_blank">DEMO</a></p>
<p>download source code <a href="http://tympanus.net/codrops/wp-content/uploads/2009/09/gallery.zip">here</a></p>
<p>You can find more jQuery Image Galleries <a href="http://tympanus.net/codrops/2009/09/07/42-jquery-image-gallery-plugins/" target="_blank">here</a></p>
<p>If you have any suggestions for this script, or if you find some bugs please let me know.</p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/09/13/dynamic-jquery-image-gallery-with-uploader/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/upload/feed/ ) in 0.22693 seconds, on May 24th, 2012 at 1:00 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 24th, 2012 at 2:00 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  tympanus.net/codrops/tag/upload/feed/ ) in 0.01702 seconds, on May 24th, 2012 at 1:28 am UTC. -->
