Please help ! - Webpage - convert dpi

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
LexiBen

Please help ! - Webpage - convert dpi

Post by LexiBen »

Hi
Im not that big in ASP so if someone can help me !!

This is my issue:
I have a lot of links on my webpage, and they are poining on tiff pictures made in dpi resolution 300. and what i need is an way to convert the pictures to 72 dpi when an user is clicking on the link.

Can some one please give me the code that i need
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Re: Please help !

Post by ckit »

LexiBen wrote:Hi
Im not that big in ASP so if someone can help me !!

This is my issue:
I have a lot of links on my webpage, and they are poining on tiff pictures made in dpi resolution 300. and what i need is an way to convert the pictures to 72 dpi when an user is clicking on the link.

Can some one please give me the code that i need
You'd need to convert the pictures to 72dpi and then upload to the webpage, there is no way a browser can do it unless there is a plugin I'm not aware of.

Use XnView's "Batch Convert -> Set DPI" to convert the TIFF 100dpi to JPG 72dpi images.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
Lexiben

Thanks

Post by Lexiben »

Bad for me, because what i have to do now is uploading all my pictures in 3 deffrent dpi's, and i hoped that i could just upload one and the convert it on the fly.
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

AlternaTIFF:
A TIFF image viewer for Windows web browsers
http://www.alternatiff.com/
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Post by Olivier_G »

What's the point of changing DPI of an image??? Really? :shock:

Olivier
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

The only time DPI takes effect is when you print the image. The people downloading the pics can simply resize the images themselves when they go to print them if they want a smaller image. They can either resize it in the print dialog or open it in any image viewer/editor and reduce (or increase) the DPI themselves.

If you're trying to create smaller files for web viewing, then you need to reduce the dimensions of the image (ie take it from 500x500 to 300x300), not the DPI.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

from thread http://newsgroup.xnview.com/viewtopic.php?p=24734 :
The reason is that a lot of magazines - Newspapers - and webdesigners are using the pictures, thats the reason to why i have my photos in 72, 150 and 300 dpi
As I said, they can easily change the DPI themselves. A 3 DPI image and a 3,000 DPI image are identical when viewed on a computer, so as long as they change the DPI before they print it, it makes no difference.
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
Post Reply