sindresorhus / gulp-imagemin

Minify PNG, JPEG, GIF and SVG images
MIT License
1.9k stars 157 forks source link

gulp-imagemin won't work on a computer without an internet connection #378

Open wealth99 opened 1 year ago

wealth99 commented 1 year ago

Gulp-imagemin does not work during offline installation and deployment. Is there a solution? Exe files are prohibited from working internally..

jheagle commented 6 months ago

Gulp-imagemin does not work during offline installation and deployment. Is there a solution? Exe files are prohibited from working internally..

Hi, is this still an issue you are experiencing? From my observations, the internet connection is a requirement for mozjpeg. That package uses its own version to look-up a file from a URL. It will then download the file which is OS dependent. This file is how jpg images can be minimized.

I don't see a way to remove this dependency unless that package maintainer chooses to do it a different way in the future. This is just from what I have seen. If the issue is something else I'm sorry I have no further information.