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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:27:46+00:00 2026-05-26T05:27:46+00:00

My website allows users to upload profile images, which are then represented in several

  • 0

My website allows users to upload profile images, which are then represented in several (about 3 or 4) different sizes around the site.

As the site grows, there is always the possibility that the image sizes will need to be tweaked, or new image sizes will be needed later.

How does a site like Facebook or Twitter handle this? Do they process the image into different sizes right at the upload time, or do they store higher quality images and process them server-side when needed?

Is there a common way to handle this?

  • 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-26T05:27:47+00:00Added an answer on May 26, 2026 at 5:27 am

    The different sized images would most likely be cached somewhere, rather than processed at access-time each time. When the upload occurs, you would create all the sizes you will need and store them (in files or your database). This method uses the most disk space to store all image sizes, but places all the processing load at the moment of upload, allowing for faster access later.

    Alternatively, if the load isn’t expected to be heavy you could create different sizes at the first moment those sizes are accessed, and then store them for future use. This method therefore uses less disk space by only creating images that are actually used, but would inhibit access times the first time an image size is used. Future access times would be fast, accessing a cached image.

    Addendum for larger loads

    Consider performing the image processing on a separate worker server. Ideally, the front end and the worker servers would share the storage mount to which images are uploaded and stored, saving transfer bandwidth between them. At the moment of upload of the original, the main application places the image in a queue for processing by the worker. The images cannot be available for use until processed, but the processing load remains independent of the front end, so it does not have much direct impact on the end-user experience.

    Depending on just how many uploads you expect per minute, the worker process could be as simple as a cron job running every minute to poll a table of pending upload tasks (registered by the main application), perform the conversions, and update the table when they have been completed. If one minute is too long to wait however, you would need a continuous running worker process to be polling for new tasks. Obviously this is more complex to implement.

    No matter what you do though, do not regenerate the alternative image sizes each time you need them. Store them somewhere.

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

Sidebar

Related Questions

I am building a networking website which allows users to upload images. When one
I am making a website which allows users to upload images for their profiles.
There is a part of my website that allows users to upload profile photos.
I'm currently developing a website which allows the users to upload presentations, documents and
I've got an MVC3 website that allows users to upload images. If a user
My friend and I are building website that allows users to upload images. We
I am trying to build a website which allows uploading of images and videos
My website allows users to upload photos to their gallery via email and it
I currently have a website (ASP.NET 3.5, IIS 7.0) that allows users to upload
I'm using plupload to allow users to upload photos to my website, which works

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.