Image resizing
Author
Discussion

chrisjl

Original Poster:

787 posts

304 months

Sunday 27th March 2005
quotequote all
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.

PetrolTed

34,461 posts

325 months

Sunday 27th March 2005
quotequote all
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.

miniman

29,148 posts

284 months

Sunday 27th March 2005
quotequote all
Does it have to relate only to resized images? Why not just make them all "clicky"??

docevi1

10,430 posts

270 months

Sunday 27th March 2005
quotequote all
miniman said:
Does it have to relate only to resized images? Why not just make them all "clicky"??
it's a swine loading up images - if you want to scroll down a page with them all on display rather than click, click... more relevant in Photography & Video I grant

PetrolTed

34,461 posts

325 months

Monday 28th March 2005
quotequote all
miniman said:
Does it have to relate only to resized images? Why not just make them all "clicky"??


Lateral thinking - like it!

chrisjl

Original Poster:

787 posts

304 months

Monday 28th March 2005
quotequote all
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.

PetrolTed

34,461 posts

325 months

Monday 28th March 2005
quotequote all
Thanks - useful feedback. I'll make some changes later in the week.