Forums / All Other Contributions/Addons / Additional Images - why different MED/LRG directories?

Additional Images - why different MED/LRG directories?

Locked

Views: 1,252

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 May 2007, 10:21 PM
#1
sem101 avatar

sem101

New Zenner

Join Date:
Nov 2006
Posts:
22
Plugin Contributions:
0

Additional Images - why different MED/LRG directories?

I'm curious why if we can add suffixes like "_MED" or "_01_LRG" etc. why can't we upload to 1 directory instead of uploading to 3 directories -- "inventory" + "inventory/large" + "inventory/medium"? Am I missing something?

A: Stores with stock that rarely change - multiple directories should work great.
B: Stores w/ stock that changes monthy/seasonal - seems redundant uploading?

I've read the posts I've searched - curious before I make modifications. Sorry if its been answered before. TIA

Thanks! -Vinny

Zen Cart 1.3.7 | YourPay LinkPoint | GoDaddy SSL | PHP 4.4

10 May 2007, 11:29 PM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Additional Images - why different MED/LRG directories?

use image handler 2 and then you won't have to worry about the _med, _large issue

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

11 May 2007, 8:28 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Additional Images - why different MED/LRG directories?

For a site that has 10,000 product images, if you add a medium and large image for each product, you could end up with 30,000 files in one folder. While that's not a problem for the server to handle, it's a nightmare if you're browsing the folder with a GUI FTP program that shows you all the existing files ... it'll take 10 minutes just to get a file-listing.

That's only one reason. For me, it's good enough !

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 May 2007, 2:36 PM
#4
sem101 avatar

sem101

New Zenner

Join Date:
Nov 2006
Posts:
22
Plugin Contributions:
0

Re: Additional Images - why different MED/LRG directories?

Thanks for the replies!

DrByte: I know what you're saying - but 10,000 Main Product images still makes matters worse. Thus the reason for this post. And if business is that good - I'm sure this dilemma is the least of the shop owners worries ;) You still have to upload to 3 directories. 1,000 or 10,000 - either way you still have to triple-upload.

barco57: Thanks, I think that's the solution :)

Thanks! -Vinny

Zen Cart 1.3.7 | YourPay LinkPoint | GoDaddy SSL | PHP 4.4

14 May 2007, 4:10 PM
#5
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Additional Images - why different MED/LRG directories?

In one of my client store we use image handler and have set up sub directories in the images folder to match the store categories to make finding and changing images easier and it works great....also seems to make handling additional images easier to

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!