ImageBulb

Example 5

Like the previous example, our vendor provides an image of each product that we sell on our website. Each image is larger than we need, and has a filename that matches our item number. In this example we allow alternate views of the product. The vendor provides the first altenate view with a filename ending in "a", the second alternate view ending in "b', and the third alternate view ending in "c".

Our website requires two images of each alternate view: a thumbnail with filename ending in "_AT1" and a large image ending in "_AL1" for the first alternate view, and so on.

To process these images we create a profile with nine pages: one to create the thumbnail, one to create the medium image, and one to create the large image for the primary view, as in the previous example. For each alternate view we create two pages: one for the thumbnail, and one for the large image.

For the primary view, we select the filename this way:

This will select only filenames that are entirely numeric.

The thumbnail page will select image size like this:

The thumbnail page will save the Destination file this way:

The first alternate view wil select the filename this way:

This will select filenames that begin with numbers and end in the letter "a".
If, for example, we are processing these files:

3294441
3294441a
3294441b
3294441c
3294442
3294442a
3294442b
3294442c

The files "3294441a" and "3294442a" will be processed by this profile page.

The thumbnail page will save the destination file this way:

The \d filter will select all of the digits, and drop the trailing letter "a". The destination filename will be the numeric portion selected by the filter followed by "_AT1".
If, for example, the source filename is "3294441a", the destination filename will be "3294441_AT1".

The pages for the other alternate thumbnails and large images are set up similarly.

Example 1 - etsy.com
Example 2 - thumbnails
Example 3 - source filename filter
Example 4 - profile to process the same image three ways
Example 5 - profile with pages selected by filename