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
I developed a code snippet using sharp for adding a frame to a provided image. It works extremely well on my development machine (MacBook Air M1, 8gb Memory). But when run the same code on my development server (Azure VM, Ubuntu, 20.04). I get the error Input file is missing. Here is what I have tried so far,
I double checked the paths and even tried to provide absolute paths to files.
I read somewhere that this can happen if low on memory, So I upgraded my VM and gave it 4gb ram. Tried the code when approx 3.5gb was available. still same error.
One thing I noticed is that the error occurs when I call toBuffer or toFile on the last step of the complete chain.
I am creating SVGs to write text on the image. (Is that supported on displayless Ubuntu)?
I have traced the issue down to the composite function. It seemed that I can call the toFile function just fine if its a simple resize but after I call composite. even with a simple 1 image over base, I am getting the error. and that too only on my Ubuntu VM.
Please ensure all of the input properties contain filenames that exist and have the relevant access permissions. As of the next release the error message will include the filename via #2360
Thank you for such quick response. We need more active contributors like you in the community. I figured out the issue. IT was indeed one of the files. Except it was not missing but the filename in code was all small letters where as the actual filename was camel case. The reason it worked on my machine was because Mac's file system is case insensitive where as it is case sensitive on ubuntu. (a very very noob mistake on my behalf).
Closing the issue.
Hi,
I developed a code snippet using sharp for adding a frame to a provided image. It works extremely well on my development machine (MacBook Air M1, 8gb Memory). But when run the same code on my development server (Azure VM, Ubuntu, 20.04). I get the error Input file is missing. Here is what I have tried so far,
I double checked the paths and even tried to provide absolute paths to files.
I read somewhere that this can happen if low on memory, So I upgraded my VM and gave it 4gb ram. Tried the code when approx 3.5gb was available. still same error.
One thing I noticed is that the error occurs when I call toBuffer or toFile on the last step of the complete chain.
I am creating SVGs to write text on the image. (Is that supported on displayless Ubuntu)?
Following is my code.
The text was updated successfully, but these errors were encountered: