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 7531413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:09:55+00:00 2026-05-30T05:09:55+00:00

I am building a web application that allows the user to upload high res

  • 0

I am building a web application that allows the user to upload high res images (in the ballpark of 10mb). After its uploaded it creates a medium sized and thumbnail sized image of the upload. It seems it takes upwards of 100mb to of memory allocated to PHP just to resize to the medium image. I don’t have a lot of experience in this type of scalability, will the site easily crash? Will I need webservers with 16gb of memory just to handle the load of the resizing? Are there alternative? Any information would be greatly appreciated!

Thank you!

  • 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-05-30T05:09:56+00:00Added an answer on May 30, 2026 at 5:09 am

    You could create a queue of images to be resized and ensure that only x number of images are being resized at any given time. x would depend on the amount of available memory.

    If you resize the images in real time as soon as they are uploaded, you are bound to run into a situation where more images are being resized than your memory can hold, which would cause a crash.

    Instead, as the image are uploaded, add them to a DB. Then have a PHP script which fetches x images from the DB, forks new processes for each of these images to rezize them. As and when a process report completion to the parent, the parent deletes the image’s entry from the queue and fetches another. Wash, rinse, repeat.

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

Sidebar

Related Questions

I am building a web application that allows a user to upload an image.
We're building a blog-like Pylons web application that uses CKeditor and allows to upload
I'm building a web application, and I need to use an architecture that allows
Background to question: We are building an online web application that requires the user
I have a web application that allows users to upload certain documents relevant to
I'm building a web application that will allow team collaboration. That is, a user
I am building a web application that will need to allow users to save
I'm building a web application that guides my users through the configuration and installation
I am building a web application that uses the database for Users, Security/roles, and
I am building a web application that needs to print directly from browser, however,

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.