image-webpack-loader
image-webpack-loader copied to clipboard
Broken JPG
JPG images had been broken in firefox after last release
and safari on OSX and iOS
same for me
Can you try the new release?
I'm experiencing the same issues, even with v3.4.1
@tcoopman The update didn't help
This options value is always true
https://github.com/tcoopman/image-webpack-loader/blob/master/index.js#L80. So all images are transformed to webp
Also, I think that adding support for webp is wrong now because other plugins just optimize images and don't change their format, but webp plugin transforms images of other formats and doesn't optimize webp images. So it is need another logic to support webp. If this options is enabled the images should be saved with another extension after transformation
I have tried to downgrade image-webpack-loader
to version 3.3.1 temporarily to fix this problem.
Seems the tests are also broken, because this case continues to "pass", even though it fails
Same problem
Same problem, my jpeg images are broken, it happens on 3.3.1 and 3.4.1
PNG images are broken as well. And Safari doesn't load images too.
We seem to be having broken JPG/PNG on Safari & Firefox but we are using 3.3.1.
Downgrading to 3.2.0 fixed it temporarily for us.
@skube The broken jpgs/pngs are fixed in 3.4.2
@tcoopman This issue can be closed alongside with https://github.com/tcoopman/image-webpack-loader/issues/112 & https://github.com/tcoopman/image-webpack-loader/issues/109
If you have the webp.enabled=false
hack, make sure you remove it when upgrading to 3.4.2.
https://github.com/webpack/webpack-dev-server/issues/1212#issuecomment-349329460 I also facing the same issue by today..
Still unable to solve using v3.4.2 only jpeg cannot load...
I didn't see any diff in webp.enabled=false/true.. same result.. possible to disable jpeg option? i tried
enabled: false in mozjpeg.. still compress my images.
Update
Using v3.4.0 solved my problem.. I saw different people using different version / downgrade to solve.. weird..
I'm also facing this issue in 3.4.2, tried also 3.4.0 but still no images in safari (on mac and iPhone).
Tried 3.4.0 and still same issue.
Downgrading to "image-webpack-loader": "^3.2.0" did the work for me.
REMEMBER in webp setting: webp: { enabled: false }
I had the same issue, wether I enabled webp or not. When trying to open file with irfanview it said: "the file is a WEBP file with wrong extension". I downgrade to 3.2.0 to make it work.
webp is only supported by chrome right now.
Same issue. Entirely removing the webp
property from options
finally fixed it. Including webp: { enabled: false }
still converted our images to webp. Thanks to https://github.com/tcoopman/image-webpack-loader/issues/148#issuecomment-377632160
Still have the bug on "version": "4.3.1", had to remove the
webp: {
enabled: true
}
part of the configuration, even setting it to false
didn't work.
pimoni is correct. This only seems to be an issue on firefox....
The files produced are encoded as webps, but with a jpg extension. Firefox cannot read them, nor can my Ubuntu file manager.
https://caniuse.com/#search=webp
Had the same issue where pngs were broken on safari and firefox. I just commented out my webp config and it's all good.
Still broken with 4.5.0. This should either be documented somewhere or the default behavior should be changed so that webp needs to be explicitly enabled before it starts converting all images to webp.
Can someone who has this issue create a PR for this?
v4.6.0
. Works in chrome and firefox. But broken in safari. Strangely, can't even open the image files in Mac's inbuilt image Preview.
Below works. Removing config for webp
.
https://github.com/tcoopman/image-webpack-loader/issues/111#issuecomment-443160129 https://github.com/tcoopman/image-webpack-loader/issues/111#issuecomment-423526387
[Sorry for redundant comment but pointing out since this persists in latest version too].
现在还是不能用,没解决吗