Is there a way to output a image in a pre-determined size (Ie; using add_image_size) using just the img tag?
For example, how can I make sure that the image that is echoed using this tag is the exact size I determined in functions.php under ‘slider’
<img src="<?php echo of_get_option('slideshow_1');?>" alt="#"/>
I hope that made some sort of sense.
How about PHP Function getimagesize()
or if you know the attachment id instead of the attachment url you could use
and if you don’t know the $iAttachmentid you could use the following to get it
(taken from http://wordpress.org/support/topic/need-to-get-attachment-id-by-image-url):