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

embed: parameter height not set #2691

Closed
adityapatadia opened this issue May 4, 2021 · 2 comments
Closed

embed: parameter height not set #2691

adityapatadia opened this issue May 4, 2021 · 2 comments

Comments

@adityapatadia
Copy link

Sharp version: 0.28.1

What are the steps to reproduce?
Trying to resize image: https://prod-img.thesouledstore.com//public/theSoul/uploads/catalog/category/catbanmob-020210330132722.jpg

Resize options are

{
  background: { model: 'rgb', color: [ 255, 255, 255 ], valpha: 1 },
  kernel: 'lanczos3',
  fastShrinkOnLoad: true,
  width: 752,
  withoutEnlargement: true,
  fit: 'inside'
}

It throws error

(sharp:36839): GLib-GObject-WARNING **: 09:33:36.533: value "nan" of type 'gdouble' is invalid or out of range for property 'vscale' of type 'gdouble'

(sharp:36839): GLib-GObject-WARNING **: 09:33:36.535: value "0" of type 'gint' is invalid or out of range for property 'height' of type 'gint'
[1620120816541] DEBUG (36839 on Adityas-MacBook-Pro.local): embed: parameter height not set

    Error: embed: parameter height not set

What is the expected behaviour?
The image should resize.

@lovell
Copy link
Owner

lovell commented May 4, 2021

Please see #2653

@lovell lovell closed this as completed May 4, 2021
@lovell lovell removed the triage label May 4, 2021
@adityapatadia
Copy link
Author

Awesome. Will wait for this release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants