Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Crop an image using Javascript/Action

New Here ,
Feb 17, 2016 Feb 17, 2016

Hello,

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

crop.png

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

pdf_crop.png

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!

649
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2016 Feb 17, 2016
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines