-
Notifications
You must be signed in to change notification settings - Fork 259
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
Paths containing ) don't work #381
Comments
The workaround I found for this is to read the file using const imageBuf = await fs.readFile(inFile)
const processedBuf = await imagemin.buffer(imageBuf, { plugins });
await fs.writeFile(outFile, processedBuf ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running this piece of code on about 10k JPG and PNG images:
Most of the images process successfully, but the following errors are returned. What you'll notice in common for these files is that they all have some amount of
)
characters in their path.I originally thought it was paths containing
(xx)
but there isBad Boy)))/thumbnail.png
which as no(
character. Unfortunately stripping the)
characters from the paths is not an option for me as the paths are referenced inside .gltf files as textures.Note there is no error thrown by imagemin, it simply does not return any data - the
processedImg
variable is an empty array[]
.Using package versions:
The text was updated successfully, but these errors were encountered: