www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > PHP

    PHP Discussion and technical support for using and deploying PHP based websites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 04-04-2007, 06:06 PM
    robertketter's Avatar
    robertketter robertketter is offline
    Registered User
     
    Join Date: Feb 2006
    Location: Hedgesville WV
    Posts: 123
    resolved [RESOLVED] Bokeh - Simple PHP image gallery

    I downloaded and installed your script and it works so awesome. Just wonder if there is a way to keep images their original size. The uploaded images are blown up to 640x? when clicking on thumbnail. I would like to keep the original size of uploaded images.

    Everyone should have your image gallery running on their site. It is really great.

    THANKS IN ADVANCE
    __________________
    Robert Ketter, www.RobertKetter.com
    Reply With Quote
      #2  
    Old 04-04-2007, 07:42 PM
    bokeh's Avatar
    bokeh bokeh is offline
    Keep it simple, stupid!
     
    Join Date: Jan 2005
    Location: Alicante (Spain)
    Posts: 7,708
    Line 260 in the admin index:
    PHP Code:
    if(($w > 640) or ($h > 640) or (@$details['mime'] !== 'image/jpg'))
    {
        
    ResizeConserveAspectRatio($_FILES['file']['tmp_name'], $full.$filename.'.jpg', 640, 640);
    }
    else
    {
        
    copy($_FILES['file']['tmp_name'], $full.$filename.'.jpg');
    }
    Replace all that with just:
    PHP Code:
    copy($_FILES['file']['tmp_name'], $full.$filename.'.jpg');
    Reply With Quote
      #3  
    Old 04-05-2007, 08:40 AM
    robertketter's Avatar
    robertketter robertketter is offline
    Registered User
     
    Join Date: Feb 2006
    Location: Hedgesville WV
    Posts: 123
    Thanks... I really think your awesome. PS. I enjoyed your personal photo gallery.

    Till next time............
    __________________
    Robert Ketter, www.RobertKetter.com
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:00 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.