]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - EVENTS.txt
Add support for plugins to resize images
[quix0rs-gnu-social.git] / EVENTS.txt
index fffaa20fd06d1a6f7cf032a0eca858a76a876cbc..1a6cba63165b3337485cd9b71ae4a1cad65c1705 100644 (file)
@@ -1459,6 +1459,11 @@ CreateFileImageThumbnailSource: Hook to create image thumbnail source from a Fil
 - &$imgPath: Path to image file which can be used as source for our thumbnail algorithm.
 - $media:   MIME media type ('image', 'video', 'audio' etc.)
 
+StartResizeImageFile: Hook to resize an image and output it to a file. No matching End event yet.
+- $imagefile: ImageFile object we're resizing.
+- $outpath:   string with output filepath
+- $box:       array with size ('width', 'height') and boundary box('x', 'y', 'w', 'h').
+
 StartShowAttachmentRepresentation: Attachment representation, full file (or in rare cases thumbnails/previews).
 - $out:     HTMLOutputter class to use for outputting HTML.
 - $file:    'File' object which we're going to show representation for.