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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
David S.Connect With a Mentor 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
 
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
 
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
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.