-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error: Unsupported output format v #1813
Comments
Hi, I can't reproduce this using the latest v0.22.1. Are you able to create a repo with code and an input image that consistently fails in this manner? |
Hi, [Error: Unsupported output format v] (sharp:17573): GLib-CRITICAL **: 16:14:34.725: g_hash_table_lookup: assertion 'hash_table != NULL' failed (sharp:17573): GLib-CRITICAL **: 16:14:34.727: g_hash_table_lookup: assertion 'hash_table != NULL' failed (sharp:17573): GLib-CRITICAL **: 16:14:34.729: g_hash_table_lookup: assertion 'hash_table != NULL' failed (sharp:17573): GLib-CRITICAL **: 16:14:34.730: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed (sharp:17573): GLib-CRITICAL **: 16:14:34.731: g_hash_table_lookup: assertion 'hash_table != NULL' failed . The same pipe is ok if the input is PNG. In the following code if I switch the input to PNG, or comment out the piping through rotation everything is fine. const sharp = require('sharp') // url: "http://178.128.223.158/designs/test.png", |
@lovell : If you still have problem reproducing with the new code, please let me know. |
The vips format is only supported for filesystem-based input and output, not Buffers or Streams. I did spot a bug relating to this where |
v0.23.1 now available with corrected values in |
Hi, `const sharp = require('sharp') processDesign()` |
@lovell : I am pretty sure this is a bug with the rotation function. Should I open another issue or we can track it with this one? |
The error seems to happen only when rotation is last in the pipeline before output to buffer. If I switch the order of resize and rotation in the above example then there is no exception. |
The vips format is only supported for filesystem-based input and output, not Buffers or Streams. The use of |
Thank you @lovell for such a great library and so quick support. |
What is the output of running
npx envinfo --binaries --languages --system --utilities
?System:
OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
CPU: (1) x64 Intel Xeon Processor (Skylake, IBRS)
Memory: 456.90 MB / 1.90 GB
Container: Yes
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
Utilities:
Git: 2.17.1 - /usr/bin/git
Languages:
Bash: 4.4.20 - /bin/bash
Perl: 5.26.1 - /usr/bin/perl
What are the steps to reproduce?
sharp('input.png').toFile('output.v')
throw error (Error: Unsupported output format v)
Output of console.log(sharp.versions)
{ cairo: '1.16.0',
croco: '0.6.12',
exif: '0.6.21',
expat: '2.2.6',
ffi: '3.2.1',
fontconfig: '2.13.1',
freetype: '2.10.0',
fribidi: '1.0.5',
gdkpixbuf: '2.36.12',
gettext: '0.19.8.1',
gif: '5.1.4',
glib: '2.56.4',
gsf: '1.14.45',
harfbuzz: '2.3.1',
jpeg: '2.0.2',
lcms: '2.9',
orc: '0.4.28',
pango: '1.42.4',
pixman: '0.38.0',
png: '1.6.34',
svg: '2.45.5',
tiff: '4.0.10',
uuid: '2.33.1',
vips: '8.7.4',
webp: '1.0.2',
xml: '2.9.9',
zlib: '1.2.11' }
The text was updated successfully, but these errors were encountered: