webpack / webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
https://webpack.js.org
MIT License
64.76k stars 8.83k forks source link

Exif data stripping in asset modules #12806

Closed dakotaewigman closed 3 years ago

dakotaewigman commented 3 years ago

Add a param to delete exif data from images using asset modules

What is the expected behavior? Add a parameter to asset modules that will strip metadata (iptc, exif, etc) from images

What is motivation or use case for adding/changing the behavior? While it's normally preferable to avoid checking in files with metadata into the codebase altogether. If forgotten, it would be good to have a way to automatically prevent photos with metadata from being deployed publicly.

How should this be implemented in your opinion? param for asset modules

Are you willing to work on this yourself? No

webpack-bot commented 3 years ago

For maintainers only:

alexander-akait commented 3 years ago

You need to implement loader/plugin to achieve this, sorry parsing images out of scope webpack, anyway you can look at https://github.com/webpack-contrib/image-minimizer-webpack-plugin/, most of imagemin plugins do it