[Feature Request] Export/Import Audio & Images in bulk - to optimize table files and sizes
Ltek opened this issue · 5 comments
As I just started mod'ing tables I'm seeing that converting the images and audio to more efficient formats and/or compressing them can save a ton of room. Converting PNG to WEBP Lossless shows a 30% or larger savings in space.
If we had a way to bulk-export, then bulk-re-import them all, we could really reduce the size of most tables.
workflow example...
- Export all Images from ABC.VPX to a selected folder
- Run a conversion app on all files in folder (convert PNG to WEBP Lossless)
- Re-Import all images in folder replacing the existing files with the same names
I would just do an in-place png->webp without going through the filesystem.
Didn't know vpx had a built-in converter being merged. Nice feature!
@Ltek you might be mixing vpinball with vpin? Vpin is the library that vpxtool uses to do work with vpx files.
@Ltek you might be mixing vpinball with vpin? Vpin is the library that vpxtool uses to do work with vpx files.
maybe, I'm confused. The main goal for this FR was to quickly/easily convert PNGs existing in a table, to WEBP to save space. I'm mod'ing tables and find that the images are often very large, not optimized.
Ideally and app could do this in 1-click...
- Export all Images
- Convert to WEPB
- Re-Import all Images to same names in table
But, even if we could simply automate 1 & 3 that would save a ton of time.
This is what is almost ready:
> vpxtool images webp "Guns N Roses (Data East 1994).vpx"
Skipping image g5kscratchedmorelight: Format error decoding Png: Invalid PNG signature.
Updated a_ramp_green from png to webp
Updated a_ramp_greendark from png to webp
Updated a_ramp_red from png to webp
Updated a_ramp_yellow from png to webp
Updated a_rampborder_green from png to webp
Updated a_rampborder_red from png to webp
...
Updated playfield_dark from png to webp
Updated Left_rail_brighter from png to webp
Updated Right_rail_brighter from png to webp
Updated sidewood_h-Black from png to webp
Updated sidewood_v-Black from png to webp
Updated apron from png to webp
Compacting vpx file
>
Initial file was 209M
New file is 194M