when i'm inserting a single picture thumbnail from the gallery with a link to the original picture, it gives me this:
<a href="http://www.dayadamy.org/wp-content/uploads/2011/12/PC220001.jpg"><img class="alignright size-general-thumb wp-image-2264" title="title of picture" src="http://www.dayadamy.org/wp-content/uploads/2011/12/PC220001-158x130.jpg" alt="alt of picture" width="158" height="130"></a>
but i want it to check if there is a smaller version of the large picture (like a 1024x1024 witch is an image_size of mine) and if there is echo this (pat attention to the file name at the end of the href attribute:
<a href="http://www.dayadamy.org/wp-content/uploads/2011/12/PC220001-1024x1024.jpg"><img class="alignright size-general-thumb wp-image-2264" title="title of picture" src="http://www.dayadamy.org/wp-content/uploads/2011/12/PC220001-158x130.jpg" alt="alt of picture" width="158" height="130"></a>
if there isn't a file in that size, echo the usual. anybody knows how do to this?
the reason i'm looking for it, is because i don't want my clients to start resizing images from his digital camera. up until now if i'm not resizing the picture the file will be maximum size, witch in most cases is 4600x3400 or something like this (ths is whats coming out from the digital cameras by default).
anyone? thanks.
