Update generated_image.cpp

This commit is contained in:
GenevensiS
2025-12-17 08:34:04 +01:00
parent 80a7dccdf1
commit f03dfafc3e
+2 -2
View File
@@ -324,8 +324,8 @@ Image BleedEdgedImage::generate(const Options& opt) {
// create enlarged image
Image base_img = base_image->generate(opt);
int w = base_img.GetWidth(), h = base_img.GetHeight();
if (w <= 0 || h <= 0) {
queue_message(MESSAGE_ERROR, _("Cannot add bleed edge to empty image"));
if (w <= 4 || h <= 4) {
queue_message(MESSAGE_ERROR, _("Image too small to add bleed edge"));
return base_img;
}
bool is_landscape = w > h;