Forum Moderators: open

Message Too Old, No Replies

not sure if this is an html question...

...but here goes

         

edwardjames7

10:23 am on Mar 23, 2004 (gmt 0)

10+ Year Member



I am trying to create an online picture gallery, but my pictures are different dimensions - some tall, some wide, etc...

What I am trying to do is make it so each table cell (or frame, or CSS, or however I can hack it) is the same dimension, but each picture is resolved to keep its original dimensions within the "cell."

For example: All my "cells" are 100 x 100, so a picture that is 400 x 600 will be resized to 75 x 100, while a picture that is 600 x 400 will be resized to 100 x 75.

I do not know the exact size of each picture - I could find out, but am dealing with a large number of picutres, and am wondering whether there is simple coding to perform this?

Thank you.

benihana

10:48 am on Mar 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you really dont want to be resizing the images in the code, the filesize will be large and the quality poor.

much better to use a software package that has a batch process [google.com] feature to change the dimensions.

PatomaS

12:16 pm on Mar 23, 2004 (gmt 0)

10+ Year Member



Hello

Yes, you will get batter results for you and the user if use some program that let you resize all those images.

But, if you can't, you can get a great result using php or flash. Are very differente one from another, but both very good for what you want.

I prefer flash for your situation, but it is just an opinion...

Good luck

Bye

edwardjames7

12:20 pm on Mar 23, 2004 (gmt 0)

10+ Year Member



I found the threads I was looking for under "batch process" - I will browse through those and let you know if I have any more questions. Thanks for pointing me in the right direction.

ergophobe

7:12 pm on Mar 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Two quick thoughts.

1. Windows XP actually has a Power Tool (Power Toy?) that does a reasonable job with jpegs. It will quickly do an entire directory and allow you to adjust the quality settings.

2. Of the three main packages I know - GD, ImageMagick, NetPBM - I would choose either of the last two. GD thumbnail quality is not very good.

3. (bonus thought) I think the GIMP does everything you want as well.

Tom