image-webpack-loader icon indicating copy to clipboard operation
image-webpack-loader copied to clipboard

Can't opimize more than 4096 images per folder

Open QuentinCurtet opened this issue 8 years ago • 1 comments

Hello,

I'm using webpack with this loader, but if there are more than 4096 images in a folder, i got this error : 95% [0] emittingError: EPROTO: protocol error, open 'myFile.jpg'

QuentinCurtet avatar Jan 31 '18 10:01 QuentinCurtet

To reproduce it, create a folder with 4100 images and run webpack with these options :

                           {
                                loader: require.resolve('image-webpack-loader'),
                                options: {
                                  mozjpeg: {
                                    quality: 85
                                  },
                                  pngquant: {
                                    quality: '65-90',
                                    speed: 10
                                  },
                                  gifsicle: {
                                    optimizationLevel: 3
                                  }
                                }
                            }

QuentinCurtet avatar Jan 31 '18 10:01 QuentinCurtet