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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:00:53+00:00 2026-05-13T08:00:53+00:00

this is for user avatar and users photo albums. I have gotten upload working

  • 0

this is for user avatar and users photo albums. I have gotten upload working but i need some guidelines on: when to do the following steps: image resize and update database with image info.

The upload is handled by a simple cgi script on the front-end server instead of the main app server behind it in order to avoid to tie up the main app server with image upload.

should I:

  • resize the image and update database with image info after finishing file upload in the upload script? my concern is that that may take too long.

  • setup a persistent daemon to monitor the upload directory and handle the resize/update database part. This one is hard to control and user may not be able to see the image as the daemon has yet to process it.

How do other people handle this efficiently?

  • 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-13T08:00:53+00:00Added an answer on May 13, 2026 at 8:00 am

    If rescaling and/or cropping the image is be performed, it’s probably best to calculate the result as soon as it has uploaded so you can display the result for the uploader to approve. ImageMagick is pretty speedy: Wikimedia uses it to rescale images (as for thumbnails) during page display.

    So what if an upload takes awhile? The typical network speed is decreased in that direction, so most users are used to slowness.

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

Sidebar

Related Questions

Is this any possible? I'd like to have something like User.avatar.to_url which would then
i have this query : SELECT CONCAT(users.id, '#_#', users.nickname, '#_#', users.avatar, '#_#', questions.datetime,'#_#',questions.question,'#_#',0000) as
I am using paperclip to upload user avatar.Evrery thing work well but when i
I am following this RyanBates's screencast on cropping User Avatar using jCrop http://railscasts.com/episodes/253-carrierwave-file-uploads .
I have this User Control XAML: <Window x:Class=MyProj.Dialog xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006 xmlns:d=http://schemas.microsoft.com/expression/blend/2008 xmlns:shell=http://schemas.microsoft.com/winfx/2006/xaml/presentation/shell mc:Ignorable=d>
I have this user defined function. public partial class UserDefinedFunctions { static int i;
I did this: [User.first, User.last].to_xml and got this: <users type=array> <user> <created-at type=datetime>2010-03-16T06:40:51Z</created-at> <id
I have situation like this: user submits form with action='/pay' in '/pay' I have
Ok so i have this User.find(4).friends [#<Contact id: 67, type: nil, default_contact_group: false, primary_contact_id:
I have a controller action that checks this.User.Identity.IsAuthenticated What do you suggest how to

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.