Comments (4)
Hello, @michaeltrim ,
Thank you for the alert!
glob do not can find file.
It is related with the library glob
compress-images has option for the library glob
globoption (type:boolean|other): Options module`s glob. Also you can set false;
You need to look:
Options
absolute Set to true to always receive absolute paths for matched files. Unlike realpath, this also affects the values returned in the match event.
Write please me if you will get any result.
from compress-images.
Thank you, in the end I fixed using the following...
INPUT_PATH = '/MyAppSpecificPath/**/*.{png,jpg,svg}'
glob options
{root:os.homedir(), absolute: true}
from compress-images.
Actually this broke the output on windows
the line
path_out_new = files[i].replace(new RegExp(path_in_part, "g"), output);
now fails as the path in file[i] contains backslashes but the path_in_part contains forward slashes
from compress-images.
Patched for windows by adding the following in my local node_modules folder
files[i] = files[i].replace(new RegExp("\\", "g"), "/");
path_out_new = files[i].replace(new RegExp(path_in_part, "g"), output);
from compress-images.
Related Issues (20)
- images are not saved to exact paths HOT 12
- Suggestions to avoid passing excessive arguments and use well-constructed options HOT 1
- GIF-LIB error: Image EOF detected before image complete. HOT 4
- Support to Typescript HOT 5
- Get an error during installing module HOT 3
- Exclude folder HOT 1
- Error of inputting path HOT 1
- Does it protect itself from zip bombs ? HOT 2
- Is it possible to resize ? HOT 3
- Update Dependencies HOT 4
- file does not exist when it does? HOT 1
- Why the finally file size has increased? HOT 2
- tell me to install a additional module HOT 6
- Compatibility with pngquant-bin v7 HOT 5
- Unrecognized option: 'u' HOT 1
- why gif become blurry after run "compress_images.js" HOT 1
- Ability to input the file instead of its path HOT 1
- error Error [TypeError]: Cannot read properties of undefined (reading 'engine')
- Outdated dependency update?
- How do I disable logging and statistics? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compress-images.