Try specifying the sizex and sizey parameters like this (with your own numbers obviously)...should do the trick.
PHP Code:thumb.php?file=/images/image.jpg&sizex=600&sizey=480&nocache=1
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I am working on a site that has some large images in a bunch of galleries. I am setting it up so that the owner will be able to add images himself so that I won't have to... The big issue is the thumbnails...
So... I just installed phpThumb and it is really cool... creates the thumbnails for you on the fly...
BUT
I can not seem to get it to set the height and with to a specific size. I can specify the height and width parameters, but it uses the first one you specify and then scales the image and constrains the proportions... This makes the thumbnails different sizes if the source files are different sizes...
I need to make all of the thumbnails the exact same size regardless of the size of the source image...
Anyone know how to do this???
Thanks!!!
Try specifying the sizex and sizey parameters like this (with your own numbers obviously)...should do the trick.
PHP Code:thumb.php?file=/images/image.jpg&sizex=600&sizey=480&nocache=1
Thanks for the help Simsi... Actually, I found the answer...
You need the "iar" (Ignore Aspect Ratio) parameter. You just set "&iar=1" and it will force to the "w" and "h" you set.
![]()
Bookmarks