Re: how do i render different sizes of post images
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
The same request here with height and width for the images.
But the second line of code keeps the image at the size specified by "*
+image_size+*". Height and width have ne effect. Is it possible to remove *image_size
*so that i can keep the image proportional and not force it to be square?
What would be the right way to do it?
miercuri, 4 aprilie 2012, 19:25:08 UTC+3, Aneesh Joseph a scris:
>
> as you can see, this script will render square thumbnails. If you want to
> add the height and width parameters, you can add that by changing
>
> image_tag='<img src="'+image_url.replace('/s72-c/','/s'+image_size+'-c/')+'" class="postthumb" alt="'+post_title+'"/>';
>
>
>
> to
>
> image_tag='<img src="'+image_url.replace('/s72-c/','/s'+image_size+'-c/')+'" class="postthumb" alt="'+post_title+'" height="'+image_size+'" width="'+image_size+'"/>';
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/groups/opt_out.