summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Chars.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-03-12 16:07:48 +0100
committerYorhel <git@yorhel.nl>2020-03-12 16:08:24 +0100
commit8fe95ae3c2119e5a5219ad072d441bac406ea547 (patch)
tree780090a7f0c402bb73eaf203f78271ff431a308b /lib/VNDB/Handler/Chars.pm
parent583ae868dfd3c882a8d2dd40b5d5ed099170c1c2 (diff)
SQL: Keep track of dimensions for all images in the DB
Ought to simplify the image flagging UI.
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r--lib/VNDB/Handler/Chars.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index a7a8d801..d1544981 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -426,7 +426,7 @@ sub _uploadimage {
$im->Set(magick => 'JPEG', quality => 90);
# Get ID and save
- my $imgid = $self->dbCharImageId;
+ my $imgid = $self->dbImageAdd(ch => $nw, $nh);
my $fn = imgpath(ch => $imgid);
$im->Write($fn);
chmod 0666, $fn;