Skip to main content
matmate
Participant
February 17, 2016
Question

Crop an image using Javascript/Action

  • February 17, 2016
  • 1 reply
  • 731 views

Hello,

there is an image that I can crop manually using Content Editing/Edit Text & Images -> Selecting the image -> Choosing the Crop function

then I can drag i.e. the bottom side of the image and crop an inch from it like that:

How can I achieve this using Javascript?

Eventually I aim to do this in a loop for each page within an Action. There is always only one image on each page - it is a scanned document.

Thanks in advance!

    This topic has been closed for replies.

    1 reply

    Inspiring
    February 17, 2016

    JavaScript does not allow you to set clipping regions. An alternative would be to place something opaque, like a button, on top of the area that you want to obscure, and perhaps then flatten the button.