<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Implementare plugin JCrop e upload Ajax/Jquery]]></title><description><![CDATA[<p dir="auto">Buonasera a tutti<br />
volevo chiedervi se qualcuno ha mai implementato uno script del genere:</p>
<p dir="auto">all'interno di un form (quindi con immissione del nome dell'immagine) vorrei inserire un upload multiplo (Ajax/Jquery) con l'impiego del plugin JCrop per ritagliare l'immagine.</p>
<p dir="auto">Avete dei suggerimenti o dei buoni script ?<br />
Ne ho visti a decine (9lessons, GT Forum, ecc...) ma tutti complessi per essere integrati con le caratteristiche che vi ho elencato sopra...</p>
<p dir="auto">Grazie</p>
]]></description><link>https://dev.connect.gt/topic/167007/implementare-plugin-jcrop-e-upload-ajax-jquery</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 16:12:04 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/167007.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Feb 2012 20:12:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Implementare plugin JCrop e upload Ajax/Jquery on Tue, 28 Feb 2012 19:59:13 GMT]]></title><description><![CDATA[<p dir="auto">Ciao<br />
grazie della risposta.<br />
Ho trovato uno script eccezionale:</p>
<p dir="auto">trentrichardson/UberUploadCropper su github.</p>
<p dir="auto">Ho un dubbio:<br />
come vedete dal codice che mi metto sotto io faccio l'upload, ritaglio l'immagine, premo DONE e poi ho l'immagine ritagliata sottostante.<br />
Il mio obiettivo è inserire il link dell'immagine/i (deve funzionare per + immagini) or ora ritagliata in una pagina che creo da un semplice form php.. in poche parole aggiungere una function dopo OnComplete..come potrei fare ?</p>
<pre><code>	&lt;script type="text/javascript"&gt;
			$(function() {
				
				$('#UploadImages').uberuploadcropper({
					//---------------------------------------------------
					// uploadify options..
					//---------------------------------------------------
					//'debug'		: true,
					'action'	: 'upload.php',
					'params'	: {},
					'allowedExtensions': ['jpg','jpeg','png','gif'],
					//'sizeLimit'	: 0,
					//'multiple'	: true,
					//---------------------------------------------------
					//now the cropper options..
					//---------------------------------------------------
					'aspectRatio': 1, 
					'allowSelect': false,			//can reselect
					'allowResize' : true,			//can resize selection
					'setSelect': [ 0, 0, 200, 200 ],	//these are the dimensions of the crop box x1,y1,x2,y2
					'minSize': [ 200, 200 ],			//if you want to be able to resize, use these
					'maxSize': [ 500, 500 ],
					//---------------------------------------------------
					//now the uber options..
					//---------------------------------------------------
					'folder': 'uploads/',			// only used in uber, not passed to server
					'cropAction': 'crop.php',		// server side request to crop image
					'onComplete': function(imgs,data){ 
						var $PhotoPrevs = $('#PhotoPrevs');

						for(var i=0,l=imgs.length; i&lt;l; i++){
							$PhotoPrevs.append('&lt;img src="uploads/'+ imgs[i].filename +'?d='+ (new Date()).getTime() +'" /&gt;');
						}
					}
				});
				
			});
		&lt;/script&gt;
	&lt;/head&gt;

	&lt;body&gt;
		&lt;div id="wrapper"&gt;
			&lt;h1&gt;UberUploadCropper&lt;/h1&gt;
			&lt;p&gt;Advanced Example which demonstrates the uploading a large image, scaling a smaller copy to fit the browser, crop, and resize the original full size image.  This method maintains better image quality.&lt;/p&gt;
			
			&lt;div id="UploadImages"&gt;
				&lt;noscript&gt;Please enable javascript to upload and crop images.&lt;/noscript&gt;
			&lt;/div&gt;

			&lt;div id="PhotoPrevs"&gt;
				&lt;!-- The cropped images will be populated here --&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/body&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/1055774</link><guid isPermaLink="true">https://dev.connect.gt/post/1055774</guid><dc:creator><![CDATA[marcopietro]]></dc:creator><pubDate>Tue, 28 Feb 2012 19:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to Implementare plugin JCrop e upload Ajax/Jquery on Tue, 28 Feb 2012 03:28:24 GMT]]></title><description><![CDATA[<p dir="auto">Ciao, a parte la differenza php/asp questo tutorial credo potrà aiutarti<br />
<a href="http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET" rel="nofollow ugc">http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET</a></p>
]]></description><link>https://dev.connect.gt/post/1055773</link><guid isPermaLink="true">https://dev.connect.gt/post/1055773</guid><dc:creator><![CDATA[claudioweb]]></dc:creator><pubDate>Tue, 28 Feb 2012 03:28:24 GMT</pubDate></item></channel></rss>