Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Scaling image files #166

Open
Mirrorman95 opened this issue Dec 13, 2021 · 1 comment
Open

Feature Request: Scaling image files #166

Mirrorman95 opened this issue Dec 13, 2021 · 1 comment

Comments

@Mirrorman95
Copy link

ScaleFX and its variants are really good looking filters, but they can only be used inside of certain emulators. I have plenty of pixel art which I want to test it on, but unlike xBRZ, which came with the ScalerTest program to upscale images outside of emulation, the ScaleFX shaders do not. They seem to only be available in the RetroArch-exclusive file formats that all these common-shaders use. If there is any way someone could write a basic program, or RetroArch feature, to allow someone to run the shaders on regular images and export the results, I would appreciate. If this is the wrong place to request such a thing, please direct me to the right place to do so.

@hizzlekizzle
Copy link
Collaborator

this is possible in RetroArch, which can load image files directly. There are also command line switches to apply a given shader preset, take a screenshot and then close after X frames. So, with some minimal scripting, you can indeed bulk process images.

Here is the bat file I've used to do this in the past (this looks for png files in a directory called 'process' and then dumps the screenshots into another directory called 'processed'):

@echo off
FOR %%A IN (process\*.png) DO .\retroarch.exe --verbose -c retroarch.cfg %%A --max-frames 100 --max-frames-ss --max-frames-ss-path ".\processed\%%A"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants