Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:37:55+00:00 2026-06-13T10:37:55+00:00

I am working on a gallery concept for something I am building up, and

  • 0

I am working on a gallery concept for something I am building up, and I am trying to figure out what would be my best approach at taking an image file uploaded to the server, and then converting it 3 times to different sizes within a set ratio with a max height or width. Depending on which is greater.

So the upload class, and image manipulation class are pretty straight forward on a one to one basis, though I know you can loop through an array and process things over and over. However, the tricky part is the 3 different sizes.

Essentially I plan to take the uploaded file and store it in a different directory than uploaded to with a new name and all else we will call that dir “org”. Then I want to take this original, keeping the file name consistant with the original after renaming it, and then resize the original within a certain ratio with a max size of either certain width or height pending on which is greater. Which the image class handles, now the part thats confusing me, is how do I do this 3 times one smaller then the next. I want a “lrg”, “med”, “sml” folder set. Would I build those into the same function some how or would I pass one upon completion to the next function and so on? If its all in the same function, then thats where I am confused to how I should handle this.

Also for reference I haven’t tried much outside of the standard information found on the CI docs, as I am trying to think this through before getting deep into the code and finding out it wont work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:37:56+00:00Added an answer on June 13, 2026 at 10:37 am

    Maybe you could try timthumb insted of storing x3 elements.

    this way you store Org. image and just in case you need specific size it process and store in cache folder for specific time in case you need same image again.

    http://code.google.com/p/timthumb/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an image gallery, where the user can upload images. The uploaded
I'm working on an image gallery at the moment and its doing something very
I have a photo gallery I am working on building, and I have a
I'm currently working on a web site that will show kind a image gallery
I'm working on a django app for a site that requires an image gallery.
I have been working on an image gallery in PHP and Javscript for a
I am working on an image gallery at the moment. When a user is
Working on an image gallery, but it keeps crashing on me (you control it
I'm working on an image gallery, where the user can upload images. When an
I'm working on a web gallery and uploading a file raises a lot of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.