9 replies [Last post]
PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Was this information Helpful?

This isn't a Ubercart-related issue, but I'm hoping someone can help me determine how much disk space I'll need on my web server to store a minimum of 1000 images for using on a Drupal/Ubercart website I'm working on. The customer will be taking the images with a digital camera.

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
Image Size

It is not only the uploaded images that have to be considered but also the size of images processed for the cart, product, product list, category and thumbnail. All of these images are generated from the one uploaded image.

Thus, it is not a simple matter of coming up with a magic number. The wild card is how big are the uploaded images? i.e. size in pixels and in K bytes. In my case images are uploaded in a px size of 400 x 500 px or so. The JPEG size ranges from 40K to 70K depending on image content and chosen JPEG compression. (PhotoShop save for web is used)

On another site images are 600 x 600 px and range from 22K - 80K depending on content and JPEG compression. The key here is to limit the size of the image that will be displayed to no more than 600 x 600 in this case. Thus there is no need to upload any larger than 600 x 600 or whatever you have determined as your selected large display size.

As an example, there are about 700 images on the site (400 x500 px) in the size as stated. The 'files' folder is at 68.1 Megs.

Most of the file space will go to the original uploaded images. For this site it is 8.06 megs for all of the smaller images and 60 megs for the upload originals.

Will this hold true for your site? Most likely not, but it can be used as a very rough guide as to what to expect.

The major issue is what are the sizes of the images that are to be uploaded? Just ask for a number of samples and see. Many do not overly compress so that uploads become larger. The idea is to keep the upload size as small as possible and yet maintain acceptable quality.

itsallamit's picture
Offline
Joined: 08/06/2008
Juice: 53
depends

Depends on the resolution you want to keep for the images. You don't need very high resolution images so you should be good with storage around 1GB (or less).

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: depends

1GB or less? On a hosting solution? I've never heard of such a thing.

It sounds to me like the original poster's client is a photographer? And perhaps they're going to be uploading high-res images for sale? You should find out the file size of the JPEG image that gets output by the camera (a 20-megapixel camera will save larger files than a 7 megapixel) and then multiply that number by 1000 to get just the size for those large files.

Double that and you'll have more than enough storage to take care of the majority of the smaller, web-resolution images (such as thumbnails).

Most hosting companies come with a minimum of 150GB for even their basic hosting solution. Obviously the more you can get, the better, so consider going towards 320GB or 500GB of storage. (Either total, or if you can get several of those sizes in a RAID array, for data redundancy, you'll be much better off.)

--
Help directly fund development: Donate via PayPal!

itsallamit's picture
Offline
Joined: 08/06/2008
Juice: 53
1 GB or less
torgosPizza wrote:

1GB or less? On a hosting solution? I've never heard of such a thing.

I don't know what exactly you mean but I was talking about quality shared hosting on a cheaper plan. And I am not talking about oversellers like hostgators or dreamhost. For example, here's a pricing plan for cartikahosting one of the companies which gets good reviews on webhostingtalk forums. http://www.cartikahosting.com/clustered-hsphere-hosting/Hsphere-Multiple...

There are quite a few sites which can run on less than 1 GB or disk space.

I didn't realize that it was a photograph selling website.

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: 1 GB or less

It's not a photograph selling website, so the images do not need to be high-quality. The images have not yet been taken and the customer is willing to resize them before uploading if necessary. I'm using http://www.qualityhostonline.com/compare_web_hosting.htm

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Help Calculating Web Server Disk Space Needed for 1000 Uberc

Thanks everyone! You've given me something to go on. Now if I can only figure out how to get the option showing to add images to my products...

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Help Calculating Web Server Disk Space Needed for 1000 U

If you're using Ubercart 2, for Drupal 6, there was an issue in the latest Beta that got fixed in the Dev release. You might try downloading that version and running update. Do a search for "image issue" and you'll see what I mean, there are threads all over the place that talk about it.

--
Help directly fund development: Donate via PayPal!

PatW's picture
Offline
Joined: 03/31/2009
Juice: 138
Re: Re: Re: Help Calculating Web Server Disk Space Needed for 10

TorgosPizza, Yes, I'm using 6.x-2.0 beta5. I read some of the image issue threads and it gets pretty confusing. Some say to apply patches, some say to download dev modules, and others say as you do, to download the dev Ubercart. I think I'm going to follow your suggestion. Do I need to uninstall anything before replacing the Ubercart core files?

staceyk's picture
Offline
Joined: 03/25/2010
Juice: 3
Re: Help Calculating Web Server Disk Space Needed for 1000 Uberc

What size are the images? You're probably gonna need around 10-20 gbs for that purpose.
Stacey K
e cigarette advocate