How to show an image where height nog greater then xx but do not stretch

R

Roland Wolters

Hi,

I need to show an image in the header of an asp page. If the image's width
is greater then 82 pixels, the header gets mis-formed. If I specify the
height for the image and it is smaller then 82 pixels it gets stretched and
misformed.

How do I solve this? At first I planned to write a vb-dll that checks the
image's height but since the image come's as a BLOD from sql-server tat is
a no-go.

Can I find the original height in the binary data from the blob itself?

HELP!


Greatings,

Roland
 
R

Roland Wolters

Hi,

I posted this question on many different groups and this is probably
the best tip I got. Other tried to get me te script things but that
doesnt work. Not the image is placed in a div. When the image is too
large it simply is not shown completely but as you mentioned at least
it doesn't mess up the header!

Thanks,

Roland
 
B

Bhaskardeep Khaund

Hi,

You could use a component like ASPJPEG from Persists Software, which resizes the image according to your predefined dimension. Then you would never face this problem.

Regards,
Bhaskardeep Khaund
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top