Resizing images (auto posted from external source)
-
I frequently have images autoposted to by blog by external services….thus they are never uploaded to my server.
Currently I use this to resize them (from my css):
.entry .posterous_autopost img { max-width: 200px; width: expression(this.width > 200 ? 200: true); max-height: 280px; height: expression(this.height > 280 ? 280: true); float: right; margin: 4px; border-bottom:3px solid #300707; border-right:2px solid #300707; border-top:3px solid #592222; border-left:2px solid #592222; }
So…all I have to work with is that the images will always be within my .posterous_autopost class
What I’ve got there is basically my guess as to how to resize things….but it’s kinda pieced together, and since the images aren’t always going to be horizontal or vertical, dealing with the widths and heights and keeping things proportional has totally thrown me
The results I am getting are tolerable…..
https://www.rvoodoo.com/2010/01/untitled/basically….am I going about this the right way? Is there a way to do a proportional css resize? Say 40percent of origianl or something? Is there a better way to do this?
As always, thanks folks!
- The topic ‘Resizing images (auto posted from external source)’ is closed to new replies.