Repository navigation
In this release:
Tidies a couple of performance and security liabilities by using Node built-in functions, tightening up file-type validation.
Image files are now validated with VipsForeignLoad and allow-listing our supported image types.
File-type validation also has a side effect. e.g.: if you have a .jpg file but the image is actually a GIF, it will now be ignored.
If you were relying on symlinks or processing really large images (25mb+), I am sorry.
Changes from #514:
- Validate JPEG, PNG, WebP and AVIF files before processing. Symlinks are no longer followed.
- Fork PRs are skipped (Unless using COMPRESS_ONLY†).
- Oversized (25mb+) images are rejected.
- Requires Node 26, and uses built in glob. (Removes historically risky dependency glob).
- Updates dependencies.
- Smaller Docker image.
† Not recommended