-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hi,
I discovered that, when assets are scrapped, they are stored in their original dimensions and file format.
To be honest, this is a waste of space and a real pain regarding performances especially when there are hundreds of assets or when they are stored on a network disk (like in my case).
Some assets are quite small and fast but some are huge with more that 4Mb with a resolution over 2000px wide and some are even in PNG which is not the bast format you can find regarding space efficiency.
To give you an example, for one of my romset with about 600 rom files (not even the biggest), my assets directory for this platform already accounts for more than 1.5Gb which is more than the total space used by the ROM files themselves ;p
Assets size really depends on screen resolution and with a 1080p screen size, 500px for boxfronts and maybe 2000px for fanarts in JPEG format wityh decent compression (like 80~90) is way enough.
Of course, you might need more with a >4k display.
I think it would be great to have the possibility to set custom MAX horizontal size for each assets types in the preferences so that the user can define what he wants as max picture dimensions, limiting that way the size (and thus, load time !) it takes when scrolling huge romset list.
For example something like this, no value would be equal to "no limit" which is the current behavior :
- 3dboxes : 200px
- banners : 400px
- boxback : 500px
- boxfront : 500px
- ...
- fanarts : 2000px
- ...
The workflow would then be something like that :
- scrap an asset (boxfront) from the scraper website
- if custom size for boxfront is set AND picture width is over that size, schrink the picture to the max width size, else, don't resize anything
- convert the picture (resized or not and whatever the original format) to JPEG/85% compression level and remove every metadata such as exif/iptc
People with huge screen resolutions like >4k could then limit the assets to bigger or unlimited size but people with lower specs or I/Os limited hardware with smaller resolutions like 1080p would greatly benefit from this change.
This will probably make scraping process a little longer (not even sure of that with decent hardware) but will make general usage a lot smoother when navigating in the rom lists.
Best regards.