rstackjs / rstackjs/rsbuild-plugin-image-compress

Some png file in my project using pngQuantize will throw `quantize failed QUALITY_TOO_LOW`

Open
#16 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

PR welcome
Dominant language
TypeScript
Stars
25
Forks
2
Avg merge
2h 58m
Merged PRs (30d)
7

Description

Some png file in my project using pngQuantize will throw quantize failed QUALITY_TOO_LOW, cause build failed.

can we have a fallback option that when some compress failed we can use original image or use another compress method instead(in my case, change to pngLossless worked) to make build continue?

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.

Research direction

No file or test is named. Start by tracing the plugin's pngQuantize path and the available pngLossless path; clarify whether a failed compression should retain the original image or switch methods, then verify that a QUALITY_TOO_LOW image no longer aborts the build.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.