Create Thumbnail Using JavaScript

How do you create a thumbnail of a JPG using JavaScript and store the resulting image in the Image object?
Ray TurnerSenior ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David S.Commented:
What are you trying to do?

This isn't school-work, is it?
0
Ray TurnerSenior ConsultantAuthor Commented:
No it's not school work.  I know how to do it with ASP.NET, but I don't know how to it using JavaScript.
0
David S.Commented:
That's not really the answer I was looking for to my first question, so let me ask it another way.

Why do you want to use JavaScript to do this?

What do you want the thumbnails for? For example, do you want a user to click on one in order to see a larger version of the image?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Ray TurnerSenior ConsultantAuthor Commented:
Do you want a user to click on one in order to see a larger version of the image?

Yes
0
David S.Commented:
One purpose of thumbnails is to prevent users from having to download the larger versions of images until they actually want to look at them. By using JavaScript to create thumbnails, you lose that.

However, it's easy to use JavaScript to shrink the visible dimensions of an image. Just set the width and/or height to the size you want the thumbnail to be and it will be scaled for you.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray TurnerSenior ConsultantAuthor Commented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.