drupflare/worker - v1.0.4
    Preparing search index...

    Function withoutUpscale

    • The encoder's options with a width the image already meets taken out. tinyimg 1.1.1 enlarges an image to the width it is given even with fit: 'scale-down', so a 900 px photo asked for 2,560 came back larger than it went in and was left as a JPEG.

      Type Parameters

      • T extends { width?: number }

      Parameters

      • input: Uint8Array
      • options: T

      Returns T