Include thumbnail dimensions
This commit is contained in:
parent
911caadc84
commit
35f7ccb3ba
@ -313,6 +313,7 @@ class DanbooruApi extends Extension {
|
|||||||
continue;
|
continue;
|
||||||
$taglist = $img->get_tag_list();
|
$taglist = $img->get_tag_list();
|
||||||
$owner = $img->get_owner();
|
$owner = $img->get_owner();
|
||||||
|
$previewsize = get_thumbnail_size($img->width, $img->height);
|
||||||
$xml .= xml_tag("post", array(
|
$xml .= xml_tag("post", array(
|
||||||
"id" => $img->id,
|
"id" => $img->id,
|
||||||
"md5" => $img->hash,
|
"md5" => $img->hash,
|
||||||
@ -321,6 +322,8 @@ class DanbooruApi extends Extension {
|
|||||||
"height" => $img->height,
|
"height" => $img->height,
|
||||||
"width" => $img->width,
|
"width" => $img->width,
|
||||||
"preview_url" => $img->get_thumb_link(),
|
"preview_url" => $img->get_thumb_link(),
|
||||||
|
"preview_height" => $previewsize[1],
|
||||||
|
"preview_width" => $previewsize[0],
|
||||||
"rating" => "u",
|
"rating" => "u",
|
||||||
"date" => $img->posted,
|
"date" => $img->posted,
|
||||||
"is_warehoused" => false,
|
"is_warehoused" => false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user