What's wrong with this entry?
Anonymous. No account, no email.
What: Replaced optional native image processor module with pure Sharp-based implementation for more reliable and consistent image handling
Details:
- Previous versions attempted to use a compiled native module (
image-processor.node) with Sharp as a fallback, often showing warnings like "Native image processor not available, falling back to sharp" - New implementation uses Sharp exclusively with a sophisticated multi-stage compression strategy:
- Multi-scale resizing (100%, 75%, 50%, 25% of original dimensions)
- PNG-specific palette compression (64 colors at 800x800)
- Progressive JPEG quality reduction (starting at quality 50 for 600x600)
- Final fallback (400x400 at quality 20)
- Eliminates dependency on native compilation, improving reliability across different platforms
- More predictable behavior with deterministic compression strategies
- Evidence: Removed
UqQ() at line 280470,$qQ at line 280527,qqQ() at line 280537in v2.0.44; AddedK5A() at line 156002,_P8() at line 156053,xP8() at line 156081,vP8() at line 156089,bP8() at line 156097in v2.0.45