minor fixes to the natives
This commit is contained in:
		
							parent
							
								
									ff7f0a3110
								
							
						
					
					
						commit
						7a76609e70
					
				
					 10 changed files with 16 additions and 12 deletions
				
			
		|  | @ -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"; | ||||
| } | ||||
|  |  | |||
|  | @ -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; | ||||
| } | ||||
|  |  | |||
|  | @ -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; | ||||
| } | ||||
|  |  | |||
|  | @ -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; | ||||
| } | ||||
|  |  | |||
|  | @ -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; | ||||
| } | ||||
|  | @ -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; | ||||
| } | ||||
|  | @ -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; | ||||
| } | ||||
|  | @ -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; | ||||
| } | ||||
|  | @ -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; | ||||
| } | ||||
|  |  | |||
|  | @ -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; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue