Skip to content

Commit 2f09541

Browse files
Saetronshish
authored andcommitted
Thumbnail instead of image for AutoTagger
Instead of using the full res image, send over the thumb for interrogation. This ads support for bigger images and video, while speeding up the process.
1 parent c22ac9e commit 2f09541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/automatic1111_tagger/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function onPageRequest(PageRequestEvent $event): void
1515
if ($event->page_matches("automatic1111_tagger/interrogate/{post_id}")) {
1616
$post_id = $event->get_iarg('post_id');
1717
$image_obj = Post::by_id_ex($post_id);
18-
$image_contents = $image_obj->get_media_filename()->get_contents();
18+
$image_contents = $image_obj->get_thumb_filename()->get_contents();
1919
$image_data = base64_encode($image_contents);
2020
$payload = [
2121
"image" => $image_data,

0 commit comments

Comments
 (0)