Skip to content

Commit 9b9db6c

Browse files
Saetronshish
authored andcommitted
Added Thumb choice to get rating
1 parent 2f09541 commit 9b9db6c

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
@@ -55,7 +55,7 @@ public function onPageRequest(PageRequestEvent $event): void
5555
if ($event->page_matches("automatic1111_tagger/get_rating/{post_id}")) {
5656
$post_id = $event->get_iarg('post_id');
5757
$image_obj = Post::by_id_ex($post_id);
58-
$image_contents = $image_obj->get_media_filename()->get_contents();
58+
$image_contents = $image_obj->get_thumb_filename()->get_contents();
5959
$image_data = base64_encode($image_contents);
6060
$payload = [
6161
"image" => $image_data,

0 commit comments

Comments
 (0)