Image Compression

Overview

Two types of Image Compression are used in this smart service:

  • Image Resizing - Resizing an image typically involves changing the visual dimensions of the image. Such as converting an 1920x1080 image into 480x270 image thus reducing the size of image file
  • Image Compressing - Image Compression utilizes mathematical techniques to compress the image file size while maintaining the resolution of the image.

Key Features & Functionality

Note: Any type of image compression or resizing will have slight loss in Image Quality.

Anonymous
Parents
  • Hi, Good day! Is there a scenario wherein the compressed image gets rotated? if so, how do I prevent it?

    I've set the dimensions as 500x500 which is definitely smaller than that of the image.

  • Hi  ,

    Thanks for reaching us!

    We can't reproduce the scenario you mentioned when attempting to compress the image; it doesn't rotate. Could you please share the steps to reproduce the issue you faced?


    Thanks,
    Vignesh E

  • Hi - i'm using a utility I built using this smart service to compress and resize some images users uploaded after taking super-high-resolution images with their phones (and of course uploading them at full size).  Many of these images are intended to be vertical and displayed vertically due only to some metadata they contain.  This metadata is stripped out by the Compress Image smart service, leading the resulting images to revert to horizontal display mode, which is not exactly an intended result.  I should note that I don't know of any Appian utility to correct image rotation.

    The metadata is stored, at least in one example image I'm looking at, in the "Exif IFD0" entry under the "Raw Metadata" entry, for instance if using the "getfilemetadata" utility (from another plug-in) on the original image.  Inside that metadata block. there is an "Orientation" parameter, which in the example I'm looking at now, says "Right side, top (Rotate 90 CW)".  To confirm, the entire "Exif IFD0" metadata block is missing after the image has been passed through the Image Compression SS.

Comment
  • Hi - i'm using a utility I built using this smart service to compress and resize some images users uploaded after taking super-high-resolution images with their phones (and of course uploading them at full size).  Many of these images are intended to be vertical and displayed vertically due only to some metadata they contain.  This metadata is stripped out by the Compress Image smart service, leading the resulting images to revert to horizontal display mode, which is not exactly an intended result.  I should note that I don't know of any Appian utility to correct image rotation.

    The metadata is stored, at least in one example image I'm looking at, in the "Exif IFD0" entry under the "Raw Metadata" entry, for instance if using the "getfilemetadata" utility (from another plug-in) on the original image.  Inside that metadata block. there is an "Orientation" parameter, which in the example I'm looking at now, says "Right side, top (Rotate 90 CW)".  To confirm, the entire "Exif IFD0" metadata block is missing after the image has been passed through the Image Compression SS.

Children
No Data