Image resizing
Discussion
Ted, now that you've implemented the image size constrainer, it'd be handy to have the image be a clickable link direct to the image url. Browsers tend to be fairly crude in their resizing so big pictures acquire a jaggedness. Right-click->View Image is one way to see the image in its original glory, but having a left click display the image in a new window would be neat.
I did consider that but haven't worked out how to do it yet.
The current method uses Javascript to parse the page and look for images with width>750. If it finds one then it alters the width. To include a link would require inserting stuff into the document (object model) - something I haven't yet fathomed from javascript.
The current method uses Javascript to parse the page and look for images with width>750. If it finds one then it alters the width. To include a link would require inserting stuff into the document (object model) - something I haven't yet fathomed from javascript.
I just noticed that FunkyNige got there first (almost a week ago!)
As he points out, there is an image host out there (ImageShack) that has a nice solution to the problem - large images are initially constrained (to screenwidth-100), but clicking on them toggles that constraint on/off in place - very effective it is too.
As he points out, there is an image host out there (ImageShack) that has a nice solution to the problem - large images are initially constrained (to screenwidth-100), but clicking on them toggles that constraint on/off in place - very effective it is too.
Gassing Station | Website Feedback | Top of Page | What's New | My Stuff


