{"result":{"depiction_url":null,"edges":{"observes":{"objects":[{"created":"2026-09-09T13:47:45Z","object_id":{"id":1913,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_media_upload_rsc_props","title":"observe_media_upload_rsc_props\/3","uri":"https:\/\/zotonic.com\/id\/1913"},"seq":1},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2052,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_rsc_update","title":"observe_rsc_update\/3","uri":"https:\/\/zotonic.com\/id\/2052"},"seq":2},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2282,"is_a":["text","documentation","reference","notification"],"name":"doc_notification_media_preview_options","title":"observe_media_preview_options\/3","uri":"https:\/\/zotonic.com\/id\/2282"},"seq":3}],"predicate":{"id":2550,"is_a":["meta","predicate"],"name":"observes","title":{"_type":"trans","tr":{"en":"Observes"}},"uri":"https:\/\/zotonic.com\/id\/observes"}},"relation":{"objects":[{"created":"2021-08-18T08:59:31Z","object_id":{"id":1341,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_image","title":"image","uri":"https:\/\/zotonic.com\/id\/1341"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:47:45Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2561,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_content_editor","title":"Content editor","uri":"https:\/\/zotonic.com\/id\/2561"},"seq":2},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2577,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_image_management","title":"Image management","uri":"https:\/\/zotonic.com\/id\/2577"},"seq":3},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2619,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_media_resource","title":"Media resource","uri":"https:\/\/zotonic.com\/id\/2619"},"seq":4},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2635,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_module","title":"Module","uri":"https:\/\/zotonic.com\/id\/2635"},"seq":5},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2638,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_edit","title":"Edit","uri":"https:\/\/zotonic.com\/id\/2638"},"seq":6},{"created":"2026-09-09T13:47:45Z","object_id":{"id":2646,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_transform","title":"Transform","uri":"https:\/\/zotonic.com\/id\/2646"},"seq":7}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":2261,"is_a":["text","documentation","reference","module"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2261"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_module_mod_image_edit","page_url":{"en":"https:\/\/zotonic.com\/docs\/2261\/mod_image_edit","x-default":"https:\/\/zotonic.com\/docs\/2261\/mod_image_edit"},"preview_url":null,"resource":{"version":1731,"pivot_location_lat":null,"title":"mod_image_edit","is_authoritative":true,"body":"<p>Non destructive edits of images.<\/p>\n<p>This adds a <em>Edit image<\/em> button on the media panel in the admin.<\/p>\n<p>Clicking that button opens an image editor where the following editing parameters can be set:<\/p>\n<ul><li>Rotation: in 90˚ increments, used to correct the orientation of an image<\/li><li>Crop: crop any or all sides of an image<\/li><li>Brightness: make an image more or less bright<\/li><li>Contrast: enhances or lowers the contrast<\/li><li>Roll: correct the rotation of an image (between 45˚ and -45˚)<\/li><li>Tilt: rotate an image in the Y direction, as if the viewer moves up or down<\/li><li>Pan: rotate an image in the X direction, as if the viewer moves left or right<\/li><li>Lossless flag: use PNG or GIF for the output image, used for clip art and logos<\/li><li>Crop center: mark a point that should stay in view when using automatic crops<\/li><\/ul>\n<p>All these operations are non-destructive. They are stored in the <code>medium_edit_settings<\/code> properties and applied whenever\nan image is resized using the <code>{% image %}<\/code> tag.<\/p>\n<p>The original image stays untouched. Downloads will download the original image.<\/p>\n<p>If the original image should be used for a preview then pass the <code>original<\/code> argument to the <code>{% image %}<\/code> tag options.<\/p>\n<h2>Accepted Events<\/h2>\n<p>This module handles the following notifier callbacks:<\/p>\n<ul><li><code>observe_media_preview_options<\/code>: Expand the image modifications that influence the generated preview image using <code>m_image_edit:get_settings<\/code>.<\/li><li><code>observe_media_upload_rsc_props<\/code>: Ensure <code>medium_edit_settings<\/code> is present\/initialized on media upload.<\/li><li><code>observe_rsc_update<\/code>: Sanitize crop\/rotation and related image-edit properties on resource updates.<\/li><\/ul>\n<p>Delegate callbacks:<\/p>\n<ul><li><code>event\/2<\/code> with <code>submit<\/code> messages: <code>edit_form<\/code>.<\/li><\/ul>","slug":"mod_image_edit","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"e448f783c6989cf2ad7528545ee74a82bb50bf72110947ef1bae3018bcfaa420","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":320,"is_a":["meta","category"],"name":"module","title":"Modules","uri":"https:\/\/test.zotonic.com\/id\/320"},"doc_source_path":"apps\/zotonic_mod_image_edit\/src\/mod_image_edit.erl","publication_start":"2023-01-30T19:23:57Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_image_edit\/src\/mod_image_edit.erl","pivot_location_lng":null,"doc_source_kind":"module","name":"doc_module_mod_image_edit","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2021-08-18T08:59:16Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_image_edit","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"b8c4b2ccdc223257f311968fbd17b2d66f0c4156\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-09-30T09:39:37Z","title_slug":"mod_image_edit"},"uri":"https:\/\/zotonic.com\/id\/2261","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2261"}},"status":"ok"}