minor fixes to the natives

This commit is contained in:
murm 2023-03-19 05:12:58 -04:00
parent ff7f0a3110
commit 7a76609e70
10 changed files with 16 additions and 12 deletions

View file

@ -5,6 +5,10 @@ class GlobeCommand extends ImageCommand {
static description = "Spins an image";
static aliases = ["sphere"];
params = {
togif: true
};
static noImage = "You need to provide an image/GIF to spin!";
static command = "globe";
}

View file

@ -76,7 +76,7 @@ ArgumentMap Caption(string type, string *outType, char *BufferData,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = final.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["height"] = vips_image_get_page_height(final.get_image());
return output;
}

View file

@ -80,7 +80,7 @@ ArgumentMap CaptionTwo(string type, string *outType, char *BufferData,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = final.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["height"] = vips_image_get_page_height(final.get_image());
return output;
}

View file

@ -35,7 +35,7 @@ ArgumentMap Colors(string type, string *outType, char *BufferData,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = out.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["height"] = vips_image_get_page_height(out.get_image());
return output;
}

View file

@ -49,7 +49,7 @@ ArgumentMap Gamexplain(string type, string *outType, char *BufferData,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = final.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["height"] = vips_image_get_page_height(final.get_image());
return output;
}

View file

@ -72,7 +72,7 @@ ArgumentMap Globe(string type, string *outType, char *BufferData, size_t BufferL
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = final.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["height"] = vips_image_get_page_height(final.get_image());
return output;
}

View file

@ -35,8 +35,8 @@ ArgumentMap Homebrew(string type, string *outType, ArgumentMap Arguments,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = bg.width();
output["height"] = vips_image_get_page_height(bg.get_image());
output["width"] = out.width();
output["height"] = vips_image_get_page_height(out.get_image());
return output;
}

View file

@ -27,7 +27,7 @@ ArgumentMap Invert(string type, string *outType, char *BufferData,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = out.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["height"] = vips_image_get_page_height(out.get_image());
return output;
}

View file

@ -121,8 +121,8 @@ ArgumentMap Motivate(string type, string *outType, char *BufferData,
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = in.width();
output["height"] = vips_image_get_page_height(in.get_image());
output["width"] = final.width();
output["height"] = vips_image_get_page_height(final.get_image());
return output;
}

View file

@ -54,8 +54,8 @@ ArgumentMap Scott(string type, string *outType, char *BufferData, size_t BufferL
ArgumentMap output;
output["buf"] = (char *)buf;
output["width"] = width;
output["height"] = pageHeight;
output["width"] = final.width();
output["height"] = vips_image_get_page_height(final.get_image());
return output;
}