<?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: How to control image width or height?</title>
	<atom:link href="http://thedeadone.net/forum/?feed=rss2&#038;p=1332" rel="self" type="application/rss+xml" />
	<link>http://thedeadone.net/forum/?p=1332</link>
	<description>Wordpress Powered Forums for thedeadone.net</description>
	<lastBuildDate>Wed, 08 Sep 2010 03:14:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Simon</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-8018</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 19 Jul 2010 12:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-8018</guid>
		<description>Here is a much easier way to do this:

Install the &lt;a href=&quot;http://wordpress.org/extend/plugins/resize-on-upload/&quot; rel=&quot;nofollow&quot;&gt;Resize on Upload plugin&lt;/a&gt;.

Go to the settings page and enter your maximum image height/width.

Now open tdomf-ipload-inline.php and find the following line (it&#039;s about line 230):

// Store in session!

Immediately before that line add in the following line:

apply_filters( &#039;wp_handle_upload&#039;, array( &#039;file&#039; =&gt; $uploaded_file, &#039;type&#039; =&gt; &#039;image&#039; ) );

All uploaded images will now be resized automatically as soon as they&#039;re uploaded.</description>
		<content:encoded><![CDATA[<p>Here is a much easier way to do this:</p>
<p>Install the <a href="http://wordpress.org/extend/plugins/resize-on-upload/" rel="nofollow">Resize on Upload plugin</a>.</p>
<p>Go to the settings page and enter your maximum image height/width.</p>
<p>Now open tdomf-ipload-inline.php and find the following line (it&#8217;s about line 230):</p>
<p>// Store in session!</p>
<p>Immediately before that line add in the following line:</p>
<p>apply_filters( &#8216;wp_handle_upload&#8217;, array( &#8216;file&#8217; =&gt; $uploaded_file, &#8216;type&#8217; =&gt; &#8216;image&#8217; ) );</p>
<p>All uploaded images will now be resized automatically as soon as they&#8217;re uploaded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Allsebrook</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-7609</link>
		<dc:creator>Jason Allsebrook</dc:creator>
		<pubDate>Mon, 14 Jun 2010 07:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-7609</guid>
		<description>When I insert the code above I get that kind of error within my site: ???

I fixed this error - by replacing all the quotes - eg. “ x ”  with &quot; x &quot;

Works fine now!</description>
		<content:encoded><![CDATA[<p>When I insert the code above I get that kind of error within my site: ???</p>
<p>I fixed this error &#8211; by replacing all the quotes &#8211; eg. “ x ”  with &#8221; x &#8221;</p>
<p>Works fine now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hobrecht</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-6230</link>
		<dc:creator>Hobrecht</dc:creator>
		<pubDate>Tue, 16 Feb 2010 14:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-6230</guid>
		<description>When I insert the code above I get that kind of error within my site:

Parse error: syntax error, unexpected &#039;:&#039; in /xxx/xxx/xxx/html_www.xxx.xxx/wp-content/plugins/tdo-mini-forms/tdomf-upload-inline.php on line 199

It seems to be this line:

die(“Error: file extension un-recognized.

Is there missing something?

Thanks. (awesome plugin btw)</description>
		<content:encoded><![CDATA[<p>When I insert the code above I get that kind of error within my site:</p>
<p>Parse error: syntax error, unexpected &#8216;:&#8217; in /xxx/xxx/xxx/html_www.xxx.xxx/wp-content/plugins/tdo-mini-forms/tdomf-upload-inline.php on line 199</p>
<p>It seems to be this line:</p>
<p>die(“Error: file extension un-recognized.</p>
<p>Is there missing something?</p>
<p>Thanks. (awesome plugin btw)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3927</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Fri, 13 Mar 2009 15:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3927</guid>
		<description>Thanks... I may sneak this code! :)</description>
		<content:encoded><![CDATA[<p>Thanks&#8230; I may sneak this code! <img src='http://thedeadone.net/forum/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enfermatiko</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3889</link>
		<dc:creator>enfermatiko</dc:creator>
		<pubDate>Mon, 09 Mar 2009 19:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3889</guid>
		<description>I&#039;ve already solved my problem but this is how the code looks on upload-inline.php

Before code:
&lt;blockquote&gt;
// Move the uploaded file to the temp storage path
    //
    for($i =  0; $i &lt; $options[&#039;max&#039;]; $i++) {
      $upload_temp_file_name = $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;tmp_name&#039;];
      $upload_file_name = $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;name&#039;];
      $upload_error = $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;error&#039;];
      $upload_size = $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;size&#039;];
      $upload_type = $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;];
&lt;/blockquote&gt;

Added code:
&lt;blockquote&gt;
if(isset($_POST[&#039;tdomf_upload_inline_submit_&#039;.$form_id])) { //see if submit button is pressed.

//check if they decided to upload a pic:
if($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;size&#039;] &gt; 1) { 

$max_height = 800;
$max_width = 600;

$info = getimagesize($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;tmp_name&#039;]);

//check the extension.
     $array = explode(&quot;.&quot;, $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;name&#039;]); 
     $nr    = count($array); 
     $ext  = $array[$nr-1];
     if(($ext !=&quot;jpg&quot;) &amp;&amp; ($ext !=&quot;jpeg&quot;) &amp;&amp; ($ext !=&quot;png&quot;)) 
     die(&quot;Error: file extension un-recognized. 
         Be sure your image follows the correct extension (.JPG or .PNG)&lt;a href=&quot;http://mysite.com/submit-form/&quot; rel=&quot;nofollow&quot;&gt;Click here to try again&lt;/a&gt;&quot;);

//CHECK TYPE: (what the browser sent)
if(($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;] != &quot;image/jpeg&quot;) &amp;&amp; ($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;] != 
&quot;image/pjpeg&quot;) &amp;&amp; ($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;] != &quot;image/png&quot;)) {
 die(&quot;Error: Upload file type un-recognized. Only .JPG or .PNG 
     images allowed.&lt;a href=&quot;http://mysite.com/submit-form/&quot; rel=&quot;nofollow&quot;&gt;Click here to try again&lt;/a&gt;&quot;);
}
 
//DOUBLE CHECK TYPE: if image MIME type from GD getimagesize() 
//-In case it was a FAKE!       
if(($info[&#039;mime&#039;] != &quot;image/jpeg&quot;) &amp;&amp; ($info[&#039;mime&#039;] != &quot;image/pjpeg&quot;) &amp;&amp; 
($info[&#039;mime&#039;] != &quot;image/png&quot;)) {
 die(&quot;Error: Upload file type un-recognized. Only .JPG or .PNG
      images allowed.&lt;a href=&quot;http://mysite.com/submit-form/&quot; rel=&quot;nofollow&quot;&gt;Click here to try again&lt;/a&gt;&quot;);
}

//check file size (length &amp; width)
if(($info[0] != $max_width) &#124;&#124; ($info[1] !=$max_height)) {
    die(&quot;Error: (&quot; . $info[0] . 
        &quot;&lt;/b&gt; x &lt;b&gt;&quot; . $info[1] . &quot;&lt;/b&gt;) is not the correct size. Only &quot;. $max_width . 
        &quot; x &quot;. $max_height .&quot; images allowed.&lt;a href=&quot;http://mysite.com/submit-form/&quot; rel=&quot;nofollow&quot;&gt;Click here to try again&lt;/a&gt;&quot;);
}
}
}
&lt;/blockquote&gt;

After code:

&lt;blockquote&gt;
if(is_uploaded_file($upload_temp_file_name)) {
        // double check file extension
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ve already solved my problem but this is how the code looks on upload-inline.php</p>
<p>Before code:</p>
<blockquote><p>
// Move the uploaded file to the temp storage path<br />
    //<br />
    for($i =  0; $i &lt; $options['max']; $i++) {<br />
      $upload_temp_file_name = $_FILES["uploadfile".$form_id."_".$i]['tmp_name'];<br />
      $upload_file_name = $_FILES["uploadfile".$form_id."_".$i]['name'];<br />
      $upload_error = $_FILES["uploadfile".$form_id."_".$i]['error'];<br />
      $upload_size = $_FILES["uploadfile".$form_id."_".$i]['size'];<br />
      $upload_type = $_FILES["uploadfile".$form_id."_".$i]['type'];
</p></blockquote>
<p>Added code:</p>
<blockquote><p>
if(isset($_POST['tdomf_upload_inline_submit_'.$form_id])) { //see if submit button is pressed.</p>
<p>//check if they decided to upload a pic:<br />
if($_FILES["uploadfile".$form_id."_".$i]['size'] &gt; 1) { </p>
<p>$max_height = 800;<br />
$max_width = 600;</p>
<p>$info = getimagesize($_FILES["uploadfile".$form_id."_".$i]['tmp_name']);</p>
<p>//check the extension.<br />
     $array = explode(&#8220;.&#8221;, $_FILES["uploadfile".$form_id."_".$i]['name']);<br />
     $nr    = count($array);<br />
     $ext  = $array[$nr-1];<br />
     if(($ext !=&#8221;jpg&#8221;) &amp;&amp; ($ext !=&#8221;jpeg&#8221;) &amp;&amp; ($ext !=&#8221;png&#8221;))<br />
     die(&#8220;Error: file extension un-recognized.<br />
         Be sure your image follows the correct extension (.JPG or .PNG)<a href="http://mysite.com/submit-form/" rel="nofollow">Click here to try again</a>&#8220;);</p>
<p>//CHECK TYPE: (what the browser sent)<br />
if(($_FILES["uploadfile".$form_id."_".$i]['type'] != &#8220;image/jpeg&#8221;) &amp;&amp; ($_FILES["uploadfile".$form_id."_".$i]['type'] !=<br />
&#8220;image/pjpeg&#8221;) &amp;&amp; ($_FILES["uploadfile".$form_id."_".$i]['type'] != &#8220;image/png&#8221;)) {<br />
 die(&#8220;Error: Upload file type un-recognized. Only .JPG or .PNG<br />
     images allowed.<a href="http://mysite.com/submit-form/" rel="nofollow">Click here to try again</a>&#8220;);<br />
}</p>
<p>//DOUBLE CHECK TYPE: if image MIME type from GD getimagesize()<br />
//-In case it was a FAKE!<br />
if(($info['mime'] != &#8220;image/jpeg&#8221;) &amp;&amp; ($info['mime'] != &#8220;image/pjpeg&#8221;) &amp;&amp;<br />
($info['mime'] != &#8220;image/png&#8221;)) {<br />
 die(&#8220;Error: Upload file type un-recognized. Only .JPG or .PNG<br />
      images allowed.<a href="http://mysite.com/submit-form/" rel="nofollow">Click here to try again</a>&#8220;);<br />
}</p>
<p>//check file size (length &amp; width)<br />
if(($info[0] != $max_width) || ($info[1] !=$max_height)) {<br />
    die(&#8220;Error: (&#8221; . $info[0] .<br />
        &#8220; x <b>&#8221; . $info[1] . &#8220;</b>) is not the correct size. Only &#8220;. $max_width .<br />
        &#8221; x &#8220;. $max_height .&#8221; images allowed.<a href="http://mysite.com/submit-form/" rel="nofollow">Click here to try again</a>&#8220;);<br />
}<br />
}<br />
}
</p></blockquote>
<p>After code:</p>
<blockquote><p>
if(is_uploaded_file($upload_temp_file_name)) {<br />
        // double check file extension
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3885</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Mon, 09 Mar 2009 16:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3885</guid>
		<description>Where did you insert this code enfermatiko?</description>
		<content:encoded><![CDATA[<p>Where did you insert this code enfermatiko?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enfermatiko</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3839</link>
		<dc:creator>enfermatiko</dc:creator>
		<pubDate>Wed, 04 Mar 2009 21:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3839</guid>
		<description>I was able to limit the accepted dimensions (height x width) for images uploaded by editing the upload-inline.php file but I can&#039;t figure out how to display the image size error correctly instead I&#039;m using die to exit the script. I would like for the upload file form to be reset like it does when there&#039;s an image size error. any suggestions? this is what I added to the script:
&lt;blockquote&gt;
if(isset($_POST[&#039;tdomf_upload_inline_submit_&#039;.$form_id])) { //see if submit button is pressed.

//check if they decided to upload a pic:
if($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;size&#039;] &gt; 1) { 

$max_height = 800;
$max_width = 600;

$info = getimagesize($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;tmp_name&#039;]);

//check the extension.
     $array = explode(&quot;.&quot;, $_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;name&#039;]); 
     $nr    = count($array); 
     $ext  = $array[$nr-1];
     if(($ext !=&quot;jpg&quot;) &amp;&amp; ($ext !=&quot;jpeg&quot;) &amp;&amp; ($ext !=&quot;png&quot;)) 
     die(&quot;Error: file extension un-recognized. 
         Be sure your image follows the correct extension (.JPG or .PNG)&quot;);

//CHECK TYPE: (what the browser sent)
if(($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;] != &quot;image/jpeg&quot;) &amp;&amp; ($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;] != 
&quot;image/pjpeg&quot;) &amp;&amp; ($_FILES[&quot;uploadfile&quot;.$form_id.&quot;_&quot;.$i][&#039;type&#039;] != &quot;image/png&quot;)) {
 die(&quot;Error: Upload file type un-recognized. Only .JPG or .PNG 
     images allowed.&quot;);
}
 
//DOUBLE CHECK TYPE: if image MIME type from GD getimagesize() 
//-In case it was a FAKE!       
if(($info[&#039;mime&#039;] != &quot;image/jpeg&quot;) &amp;&amp; ($info[&#039;mime&#039;] != &quot;image/pjpeg&quot;) &amp;&amp; 
($info[&#039;mime&#039;] != &quot;image/png&quot;)) {
 die(&quot;Error: Upload file type un-recognized. Only .JPG or .PNG
      images allowed.&quot;);
}

//check file size (length &amp; width)
if(($info[0] != $max_width) &#124;&#124; ($info[1] !=$max_height)) {
    die(&quot;Error: Image size error (&lt;b&gt;&quot; . $info[0] . 
        &quot;&lt;/b&gt; x &lt;b&gt;&quot; . $info[1] . &quot;&lt;/b&gt;). Must not exceed &quot;. $max_width . 
        &quot; x &quot;. $max_height .&quot;.&quot;);
}
}
}
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>I was able to limit the accepted dimensions (height x width) for images uploaded by editing the upload-inline.php file but I can&#8217;t figure out how to display the image size error correctly instead I&#8217;m using die to exit the script. I would like for the upload file form to be reset like it does when there&#8217;s an image size error. any suggestions? this is what I added to the script:</p>
<blockquote><p>
if(isset($_POST['tdomf_upload_inline_submit_'.$form_id])) { //see if submit button is pressed.</p>
<p>//check if they decided to upload a pic:<br />
if($_FILES["uploadfile".$form_id."_".$i]['size'] &gt; 1) { </p>
<p>$max_height = 800;<br />
$max_width = 600;</p>
<p>$info = getimagesize($_FILES["uploadfile".$form_id."_".$i]['tmp_name']);</p>
<p>//check the extension.<br />
     $array = explode(&#8220;.&#8221;, $_FILES["uploadfile".$form_id."_".$i]['name']);<br />
     $nr    = count($array);<br />
     $ext  = $array[$nr-1];<br />
     if(($ext !=&#8221;jpg&#8221;) &amp;&amp; ($ext !=&#8221;jpeg&#8221;) &amp;&amp; ($ext !=&#8221;png&#8221;))<br />
     die(&#8220;Error: file extension un-recognized.<br />
         Be sure your image follows the correct extension (.JPG or .PNG)&#8221;);</p>
<p>//CHECK TYPE: (what the browser sent)<br />
if(($_FILES["uploadfile".$form_id."_".$i]['type'] != &#8220;image/jpeg&#8221;) &amp;&amp; ($_FILES["uploadfile".$form_id."_".$i]['type'] !=<br />
&#8220;image/pjpeg&#8221;) &amp;&amp; ($_FILES["uploadfile".$form_id."_".$i]['type'] != &#8220;image/png&#8221;)) {<br />
 die(&#8220;Error: Upload file type un-recognized. Only .JPG or .PNG<br />
     images allowed.&#8221;);<br />
}</p>
<p>//DOUBLE CHECK TYPE: if image MIME type from GD getimagesize()<br />
//-In case it was a FAKE!<br />
if(($info['mime'] != &#8220;image/jpeg&#8221;) &amp;&amp; ($info['mime'] != &#8220;image/pjpeg&#8221;) &amp;&amp;<br />
($info['mime'] != &#8220;image/png&#8221;)) {<br />
 die(&#8220;Error: Upload file type un-recognized. Only .JPG or .PNG<br />
      images allowed.&#8221;);<br />
}</p>
<p>//check file size (length &amp; width)<br />
if(($info[0] != $max_width) || ($info[1] !=$max_height)) {<br />
    die(&#8220;Error: Image size error (<b>&#8221; . $info[0] .<br />
        &#8220;</b> x <b>&#8221; . $info[1] . &#8220;</b>). Must not exceed &#8220;. $max_width .<br />
        &#8221; x &#8220;. $max_height .&#8221;.&#8221;);<br />
}<br />
}<br />
}
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3761</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Tue, 24 Feb 2009 09:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3761</guid>
		<description>Using templates is always the most preferred approach to doing things in Wordpress, IMHO.</description>
		<content:encoded><![CDATA[<p>Using templates is always the most preferred approach to doing things in WordPress, IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bram</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3725</link>
		<dc:creator>bram</dc:creator>
		<pubDate>Thu, 19 Feb 2009 16:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3725</guid>
		<description>Hi,

I just posted a small explanation for outputting thumbs or medium sized images in templates.

check: &lt;a href=&quot;http://thedeadone.net/forum/?p=1700&quot; rel=&quot;nofollow&quot;&gt;this thread&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I just posted a small explanation for outputting thumbs or medium sized images in templates.</p>
<p>check: <a href="http://thedeadone.net/forum/?p=1700" rel="nofollow">this thread</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3678</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Tue, 17 Feb 2009 09:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3678</guid>
		<description>Probably using a command tool like imagemagick in the &quot;Command&quot; option in Upload Files. You could also probably write a little script that did a big more, checked the size, if it&#039;s too big, resize to a resaonable limit, etc.</description>
		<content:encoded><![CDATA[<p>Probably using a command tool like imagemagick in the &#8220;Command&#8221; option in Upload Files. You could also probably write a little script that did a big more, checked the size, if it&#8217;s too big, resize to a resaonable limit, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vin</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-3631</link>
		<dc:creator>Vin</dc:creator>
		<pubDate>Sun, 08 Feb 2009 22:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-3631</guid>
		<description>Yes, awesome plugin. So, how do I automatically resize the image after it has bee uploaded?</description>
		<content:encoded><![CDATA[<p>Yes, awesome plugin. So, how do I automatically resize the image after it has bee uploaded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-2951</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Wed, 03 Dec 2008 09:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-2951</guid>
		<description>I don&#039;t know if either option is simipler. Certainly it&#039;s not possible to limit the dimensions of the image before upload, but you can reject it once the file has been uploaded which is an utter pain if you&#039;re on a slow connection uploading a large file. 

I was depending on Wordpress to handle post formatting of images and files via their attachment mechanism. Currently there is no option to resize images apon upload, but it does generate three &quot;sizes&quot; - thumbnail, medium and original. To force the original to be a specific size requires additional code. I don&#039;t know if I&#039;ll get around to in the near future as I&#039;m considering creating a new upload files widget.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if either option is simipler. Certainly it&#8217;s not possible to limit the dimensions of the image before upload, but you can reject it once the file has been uploaded which is an utter pain if you&#8217;re on a slow connection uploading a large file. </p>
<p>I was depending on WordPress to handle post formatting of images and files via their attachment mechanism. Currently there is no option to resize images apon upload, but it does generate three &#8220;sizes&#8221; &#8211; thumbnail, medium and original. To force the original to be a specific size requires additional code. I don&#8217;t know if I&#8217;ll get around to in the near future as I&#8217;m considering creating a new upload files widget.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dartuha</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-2946</link>
		<dc:creator>dartuha</dc:creator>
		<pubDate>Tue, 02 Dec 2008 18:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-2946</guid>
		<description>Both. To limit dimensions is simpler? But to resize after uploading if profi?</description>
		<content:encoded><![CDATA[<p>Both. To limit dimensions is simpler? But to resize after uploading if profi?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Cunningham</title>
		<link>http://thedeadone.net/forum/?p=1332#comment-2942</link>
		<dc:creator>Mark Cunningham</dc:creator>
		<pubDate>Tue, 02 Dec 2008 10:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://thedeadone.net/forum/?p=1332#comment-2942</guid>
		<description>Do you mean, how to limit the dimensions of the image uploaded or modify it after uploading?</description>
		<content:encoded><![CDATA[<p>Do you mean, how to limit the dimensions of the image uploaded or modify it after uploading?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
