aseprite / aseprite/api

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

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
No language data
Stars
307
Forks
68
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.