You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to achieve?
I am trying to understand command chaining, for example resizing sample 500px image down to 4px width, then up to 1000px width so that it appears extremely pixelated
Have you searched for similar questions?
A little bit, but I didn't understand the discussions.
Are you able to provide a standalone code sample that demonstrates this question?
letimage_input=awaitsharp('./image.png');// assume starting with 500px widthawaitimage_input.resize({width: 4}).resize({width: 1000}).toFile('./output.png');console.log('finished');
If I understand correctly, what this does is, resizes 500px to 4px, then proceeds in resizing 500px to 1000px rather than 4px to 1000px
Are you able to provide a sample image that helps explain the question?
Any image will work
The text was updated successfully, but these errors were encountered:
Then searching for operations and pipelines, I found these: #230 (I don't see min() anywhere, maybe it's removed/deprecated?) #235 (didn't help) #1274 (two pipelines are required)
jasonkhanlar
changed the title
I don't understand command chaining
At first I didn't understand command chaining, but then I understood separate pipeline instances are needed
Jan 30, 2020
What are you trying to achieve?
I am trying to understand command chaining, for example resizing sample 500px image down to 4px width, then up to 1000px width so that it appears extremely pixelated
Have you searched for similar questions?
A little bit, but I didn't understand the discussions.
Are you able to provide a standalone code sample that demonstrates this question?
If I understand correctly, what this does is, resizes 500px to 4px, then proceeds in resizing 500px to 1000px rather than 4px to 1000px
Are you able to provide a sample image that helps explain the question?
Any image will work
The text was updated successfully, but these errors were encountered: