Module mod_image_edit

Add functionality to the admin to edit images.

Copyright © 2021 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Add functionality to the admin to edit images.

Function Index

event/2
observe_media_preview_options/3Expand the image modifications that influence the generated preview image.
observe_media_upload_rsc_props/3
observe_rsc_update/3

Function Details

event/2

event(Submit, Context) -> any()

observe_media_preview_options/3

observe_media_preview_options(Media_preview_options, Options, Context) -> any()

Expand the image modifications that influence the generated preview image. The order of the operations is important. As they are added in front of the options list the last added option will be performed first. The order of the operations is:

  1. Lossless (just an option for later image compression)
  2. Angle
  3. Tilt
  4. Pan
  5. Rotate (90deg increments)
  6. Crop
  7. Contrast
  8. Brightness

observe_media_upload_rsc_props/3

observe_media_upload_rsc_props(Media_upload_rsc_props, Props, Context) -> any()

observe_rsc_update/3

observe_rsc_update(Rsc_update, Acc, Context) -> any()


Generated by EDoc