Skip to content

Releases: deepakness/optisharp

optisharp 1.1

24 Aug 10:00

Choose a tag to compare

Critical Stability & Correctness Update

  • EXIF Orientation: Applies orientation automatically via rotate() for correct display.
  • Metadata Handling: Removes incorrect withMetadata(false) usage; metadata is stripped by default and preserved only when requested.
  • Safe Output Fallbacks: When OUTPUT_FORMAT='original' and source output isn’t supported (e.g., GIF/SVG), falls back to png if transparent, otherwise jpeg.
  • JPEG Transparency: Transparent pixels flattened to white when converting to JPEG to avoid black/undefined backgrounds.
  • Watermark Robustness: Case-insensitive positioning and fixed margin checks; text safely escaped in SVG to prevent XML issues.
  • Accurate Stats: Format counts and totals update only after successful writes.