Set imageSuffix for 1:1 Image Ratio

Our app uses the imageSuffix @2 to define images that are 0.5 and below in scale. 1:1 scale images don’t have an imageSuffix.

For the purposes of testing speed to quality ratios of different scaled images, how do you set config so that the 1:1 ratio also uses the smaller @2 images?

Here is the relevant parts of config. But setting @2 = 1 doesn’t seem to work - on the simulator at least…

 content = { width = aspectRatio \> 0.5 and 1536 or math.floor( 2048 / aspectRatio ), height = aspectRatio \< 0.5 and 2048 or math.floor( 1536 \* aspectRatio ), scale = "letterBox", fps = 60, imageSuffix = { ["@2"] = 0.5,

I think this a term I like to call “Fighting the system”.  You can’t specify the no-suffix version. My advice is to either rename your 1:1 images with an @1 suffix, or better yet, simply make your @2x versions your base named image and name your real 1:1’s @2x.

Rob

Thanks for the clarification Rob. Sure, renaming the files is a solution. Can anyone recommend a program that can batch through folders and remove any files that don’t have the @2?

I like using Bulk Rename Utility. Works great and less filling!

http://www.ghacks.net/2011/03/20/bulk-rename-utility-file-renaming-software/

I think this a term I like to call “Fighting the system”.  You can’t specify the no-suffix version. My advice is to either rename your 1:1 images with an @1 suffix, or better yet, simply make your @2x versions your base named image and name your real 1:1’s @2x.

Rob

Thanks for the clarification Rob. Sure, renaming the files is a solution. Can anyone recommend a program that can batch through folders and remove any files that don’t have the @2?

I like using Bulk Rename Utility. Works great and less filling!

http://www.ghacks.net/2011/03/20/bulk-rename-utility-file-renaming-software/