473,508 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create thumbnails from large images

GK
Hi all,

I wish to know , how i can create thumbnails automatically using
javascripts. It should reduce the size as well as pixel resolution
(ie, a 1 mb image of 1280 x 800 px can be reduced to 20kb of 200 X 200
px. Is this possible?

If yes, pls let me know.

Thanks in advance
Feb 29 '08 #1
2 2065
On Feb 29, 11:46 am, GK <gopakuma...@gmail.comwrote:
Hi all,

I wish to know , how i can create thumbnails automatically using
javascripts. It should reduce the size as well as pixel resolution
(ie, a 1 mb image of 1280 x 800 px can be reduced to 20kb of 200 X 200
px. Is this possible?

If yes, pls let me know.

Thanks in advance
You can reduce the size that is displayed by the browser, but that
will not reduce the size of the file on the server. That means if you
have a 1mb 1280 x 800 image, you can display it to the user as a
200X200 image, but it will still be a 1mb file that you will have to
download.

If you want to truly reduce the filesize and dimensions, you have to
do it on the server side(code like PHP, perl, ruby, .net etc).
Feb 29 '08 #2
Helbrax wrote:
On Feb 29, 11:46 am, GK <gopakuma...@gmail.comwrote:
>Hi all,

I wish to know , how i can create thumbnails automatically using
javascripts. It should reduce the size as well as pixel resolution
(ie, a 1 mb image of 1280 x 800 px can be reduced to 20kb of 200 X 200
px. Is this possible?

If yes, pls let me know.

Thanks in advance

You can reduce the size that is displayed by the browser, but that
will not reduce the size of the file on the server. That means if you
have a 1mb 1280 x 800 image, you can display it to the user as a
200X200 image, but it will still be a 1mb file that you will have to
download.

If you want to truly reduce the filesize and dimensions, you have to
do it on the server side(code like PHP, perl, ruby, .net etc).
yes..or simply when you upload the pictures in the first place, make
thumbnails of them.

I managed to do on the fly conversions to thumbnails with PHP...if you
go that route repost te question in comp.lang.php and I will post the
code up.
Mar 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5285
by: Bob Bedford | last post by:
I've 2 directories: one contains thumbnails, the other the images. How to create a dynamic photogallery, as manually it's: <div align="center"> <a...
4
2714
by: Rednelle | last post by:
Greetings all, As a newbie, using Access 2000, I would appreciate advice on the best way to include pictures. I have developed a 'Home Inventory' database which can include jpeg thumbnails of...
6
4729
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
13
4311
by: Viken Karaguesian | last post by:
Hello everyone, Can anyone recommend a good online site to learn PHP? The W3Schools website is quite lacking - leaves much to be desired. I'm sure there are many places, but which ones are good?...
8
20327
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
2
2053
by: Krustov | last post by:
The question of how to create thumbnails with clickable links gets asked on this newsgroup every so often - like clock work . Just really posing this script here for google to archive it & so...
11
2911
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
5
1520
by: tmeers | last post by:
I have done some reading on this and my thumb nail generation works great with a few exceptions, this is what I need help with. My code: public static byte ResizeImageFile(byte...
1
1946
by: MU | last post by:
Hello Can someone give me some ideas on the best way to do the following? I have a product page and it has 1 large image and 6 thumbnails. The main image is the first photo from a data table...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.