Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

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!

Results 1 to 7 of 7
  1. #1
    Exclusive Lifetime Member
    PeterMan's Avatar
    Join Date
    Aug 2005
    Location
    Canada
    Posts
    1,627
    DNF$
    24,611
    Bank
    0
    Total DNF$
    24,611
    Donate  

    Anyone use phpThumb?

    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!!!

  2. #2
    DNF Member

    Join Date
    Jun 2005
    Location
    UK
    Posts
    157
    DNF$
    3,788
    Bank
    0
    Total DNF$
    3,788
    Donate  

    Re: Anyone use phpThumb?

    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=

  3. #3
    Exclusive Lifetime Member
    PeterMan's Avatar
    Join Date
    Aug 2005
    Location
    Canada
    Posts
    1,627
    DNF$
    24,611
    Bank
    0
    Total DNF$
    24,611
    Donate  

    Re: Anyone use phpThumb?

    Quote Originally Posted by Simsi View Post
    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=
    It tells me that sizey is a forbidden parameter... Can I change that???

  4. #4
    DNF Member

    Join Date
    Jun 2005
    Location
    UK
    Posts
    157
    DNF$
    3,788
    Bank
    0
    Total DNF$
    3,788
    Donate  

    Re: Anyone use phpThumb?

    Quote Originally Posted by elivate View Post
    It tells me that sizey is a forbidden parameter... Can I change that???
    Hmmm...what version of the script do you have? Check near the top of the sourcecode. I have thumb.php v0.7 and it takes sizey as a param

  5. #5
    Exclusive Lifetime Member
    PeterMan's Avatar
    Join Date
    Aug 2005
    Location
    Canada
    Posts
    1,627
    DNF$
    24,611
    Bank
    0
    Total DNF$
    24,611
    Donate  

    Re: Anyone use phpThumb?

    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.


  6. #6
    DNF Member

    Join Date
    Jun 2005
    Location
    UK
    Posts
    157
    DNF$
    3,788
    Bank
    0
    Total DNF$
    3,788
    Donate  

    Re: Anyone use phpThumb?

    Quote Originally Posted by elivate View Post
    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.

    Nice one It's an excellent script.

  7. #7
    Exclusive Lifetime Member
    PeterMan's Avatar
    Join Date
    Aug 2005
    Location
    Canada
    Posts
    1,627
    DNF$
    24,611
    Bank
    0
    Total DNF$
    24,611
    Donate  

    Re: Anyone use phpThumb?

    Quote Originally Posted by Simsi View Post
    Nice one It's an excellent script.
    Yes, I am very impressed, and the answer came from one of the guys working on the project, he responded within hours of me asking, I was really pleased.. I am launching a new site for a client soon and this was one of my last hurdles to get over before going live...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com