Replacing image with Indexed Color Mode results in transparent color being drawn

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
lua

Research direction

Reproduce the report with the NxScale.lua script, UR64N_N3.aseprite, and Aseprite v1.2.18 using the linked Package.zip. Investigate how replacing the scaled image handles transparent pixels in Indexed Color Mode, then verify that transparency remains correct without requiring a save and restart.

Written by the indexing model from the issue text.

Description

Steps to reproduce with Aseprite v1.2.18:

  1. Add NxScale.lua script to Aseprite.
  2. Open UR64N_N3.aseprite.
  3. Use any scaling algorithm on the image.

Issue:
For scaling a new image is created and the original one is replaced by It. Pixels that were previously transparent are now drawn on the image.

Workaround:
If you save the result and restart Aseprite transparent pixels will be drawn correctly.

Package.zip

Dominant language
No language data
Stars
310
Forks
68
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aseprite/api

All issues in aseprite/api

Similar issues

More Computer Graphics issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.