Image Sub Directories

Product images are now partitioned into Sub Directories keeping each directory with around 10,000 images, although there is no hard limit.

When you add an image to a product in Miva 10, it automatically gets partitioned into a subdirectory within the graphics folder:

The subdirectories are created and managed automatically on the server. Miva will start a new numeric subdirectory once there are 2,500 master images in a folder. On average each master has 3 additional image sizes which take the total number of images close to 10,000.

It is worth noting these subdirectories will apply to all images uploaded via the Miva image picker. This includes product images, ReadyTheme Images, and things like category tree and category title images.

Image Migration Utility

For upgraded stores, Miva provides an image utility to automatically partition existing images into subdirectories.

In the Main Settings menu expand Utilities and click Image management

Under the more menu, there is a new Partition Images link.

When clicked a warning message will be displayed:

This migration wizard will only update images that are referenced in Miva. These are images that have been uploaded via the Miva image picker and have an entry in Mivas Images database. All other images which have been uploaded to the server via FTP will not be impacted.

Before:

After:

While it is not very common, but it is important to look through all page templates to verify there are no hardcoded image paths. Also, consideration needs to be given to product feeds with image paths. After the migration, feeds with hardcoded image paths need to be re-generated so they will output the correct image path.

Example Feeds

Looking for Developer Docs?

We have a whole section for that, including: Developer Training Series, Template Language docs, Module Development tutorials and much, much more.

Head to the Developer Section

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2021 Miva©, Miva Merchant©, MivaPay©, MivaCon© Miva, Inc. All Rights Reserved.