api icon indicating copy to clipboard operation
api copied to clipboard

Change Color Mode, Color Profile, add an option to silence error messages with app.open()

Open mishapsi opened this issue 5 years ago • 1 comments

Trying my hand at writing a few batch scripts for a project and have a couple suggestions

Change Color Mode

Was writing a script for an operation that I do pretty frequently, swapping palettes for a color reduced one, the operation is:

Change the color mode of the sprite to rgb Load the reduced color palette Change the color mode of the sprite back to index

The closest thing to changing the color mode, is opening the "color mode changing dialog" through app.command.ChangePixelFormat. It'd be nice to have a quiet method that doesn't open up a color mode changing dialog, but applies your settings directly to the sprite.

App.open with a setting to ignore error dialogs

I work with photoshop, and sometimes saving the files as png results in the following error when opening up the png file: libpng: iccp: known incorrect srgb profile.

Which is due to the color profile being set to Photoshop ICC profile.

Choosing to ignore the error message would help stop the problem of script pausing for batch operations.

Change Color Profile

Which brings me to being able to change the color profile directly without having to go through sprite properties dialog. (changing the color profile to 'none' allows the faulty "photoshop ICC profile" png to actually save)

mishapsi avatar Dec 12 '18 03:12 mishapsi

Hi @mishapsi, I'll take a look to the change pixel format without UI.

About the ICC problems, some issues were solved for the next version (v1.2.10). And there will be some functions to change the sprite color space too.

dacap avatar Mar 16 '19 19:03 dacap