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

Image successful converted using the web app but not in the command line #1271

Closed
cchavez opened this issue Aug 10, 2022 · 5 comments
Closed
Labels
codec new codec support

Comments

@cchavez
Copy link

cchavez commented Aug 10, 2022

I have some image that is converted to webp or avif in the web app but it get stuck in the command line, also in some code that I wrote the error displayed is Unsupported color conversion request and the application get stuck as well.

For the web app I did:

  • Downloaded the latest code.
  • Built the web application: npm install, npm run build.
  • Ran the web app: npm run dev.
  • Upload the image.
  • Select webp or avif
  • Download the image

For the command line I did:

  • Downloaded the latest code.
  • Built the web application.
  • Built libsquoosh: cd libsquoosh, npm install, npm run build.
  • Built cli: cd cli, npm install.
  • In the cli directory Ran the command: node src/index.js --avif "{cqLevel: 33, cqAlphaLevel: -1, denoiseLevel: 0, tileColsLog2: 0, tileRowsLog2: 0, speed: 6, subsample: 1, chromaDeltaQ: false, sharpness: 0, tune: 0}" --output-dir /home/cchavez/Descargas/libSquoosh/ /home/cchavez/Descargas/libSquoosh/1.jpeg
  • The command line get stuck in: 0/1 ⠴ ▐╌╌╌╌╌╌╌╌╌╌▌ Decoding...

My environment is:

  • OS: Fedora 34.
  • Node version: v16.5.0
  • npm version: 7.19.1
  • nvm version: v0.39.1

In the command line there is no error displayed but I think is the same error as in my piece of code which is Unsupported color conversion request and the application get stuck, the thing is that when I use the web application the same image is converted correctly, I tried to see if there additional parameter in the web app but I was not able to figure out if something is missed.

The following image works in the web app but didn't work in the command line:

1

The following image works in the web app and in the command line with the same parameters:

2

@andreban andreban added the codec new codec support label Aug 10, 2022
@cristianvasquez
Copy link

I also get this error, Unsupported color conversion request, but in a Web application.

The problem is that this error cannot be caught, and crashes the application.

@koseki
Copy link

koseki commented Oct 26, 2022

This will be the same problem with

The CMYK image causes a hang-up.

const squoosh = require('@squoosh/lib');
const fs = require('fs').promises;

(async function() {
  const imagePool = new squoosh.ImagePool();
  const imageFile = await fs.readFile('cmyk.jpg');
  const image = imagePool.ingestImage(imageFile);
  console.log(await image.decoded);

  await imagePool.close();
})();
$ npx node ./test.js
Unsupported color conversion request
^C

@meotimdihia
Copy link

meotimdihia commented Jan 3, 2023

Why don't developers care about this? Did they stop fixing problems?

@cristianvasquez
Copy link

I don't think is developed anymore...

@jakearchibald
Copy link
Collaborator

Unfortunately, due to a few people leaving the team, and staffing issues resulting from the current economic climate (ugh), the CLI and libsquoosh packages are no longer actively maintained. I know that sucks, but there simply isn't the time & people to work on this. If anyone from the community wants to fork it, you have my blessing. The squoosh.app web app will continue to be supported and improved.

@jakearchibald jakearchibald closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codec new codec support
Projects
None yet
Development

No branches or pull requests

6 participants