![]() ![]() This croppingĪrea must be fully contained within the source rectangle. ( x_position, y_position) and size width x height. crop x_position y_position width heightĬrop the source to a rectangle with top-left corner at coordinates Result in faster processing time at the expense of larger file size and Values are used, the encoder will spend more time inspecting additionalĮncoding possibilities and decide on the quality gain. Off between encoding speed and the compressed file size and quality. ![]() One), this option should preferably appear first in the order of the Since -preset overwrites the other parameters' values (except the -q Possible values are: default, photo, picture, Specify a set of pre-defined parameters to suit a particular type of While the lower values result in a lossy compression. Lossless compression of alpha is achieved using a value of 100, Specify the compression factor for alpha compression between 0 andġ00. If options -q or -m are subsequently used, they will This option is actually a shortcut for some predefined settings for qualityĪnd method. Produces larger file size than slower ones. Switch on lossless compression mode with the specified level between 0Īnd 9, with level 0 being the fastest, 9 being the slowest. Maximum compression is achieved by using a value of 100. Small factor enables faster compression speed, but produces a larger file. In case of lossless compression (specified by the -lossless option), a Best quality is achieved by using a value of In case of lossy compression (default), a small factor produces a smallerįile with lower quality. Specify the compression factor for RGB channels between 0 and 100. Note that lossy with -q 100Ĭan at times yield better results. The range is 0 (maximum preprocessing) to 100 (no preprocessing, theĭefault). It triggers lossless compression mode automatically. Pixel values to help compressibility, but has minimal impact on the visual near_lossless int Specify the level of near-lossless image preprocessing. The invisible pixel values (R/G/B or Y/U/V) will be preserved only if the lossless Encode the image without any loss. version Print the version number (as ) and exit. H, -longhelp A summary of all the possible options. This option must appear last.Īny other options afterward will be ignored. This option is useful if the inputįile starts with an '-' for instance. string Explicitly specify the input file. Using "-" as output name will direct output to 'stdout'. The basic options are: -o string Specify the name of the output WebP file. Note: Animated PNG and WebP files are not supported. PNG, JPEG, TIFF, WebP or raw Y'CbCr samples. webpmux_animate ( input, "anim_container.Cwebp - Compress an image file to a WebP file SynopsisĬwebp input_file -o output_file.webp DescriptionĬwebp compresses an image using the WebP format. */ //webpmux_animate(input_images_array,output,bgcolor,result_callback) var input = webp. Where: A, R, G and B are integers in the range 0 to 255 specifying the Alpha, Red, Green and Blue component values respectively. bgcolor A,R,G,B e.g 255,255,255,255 Background color of the canvas. 0 indicates the frames should loop forever. loop n e.g 10 Loop the frames n number of times. Finally, if mi and bi are omitted then xi and yi can be omitted and will default to +0+0. Also, mi can be omitted if bi is omitted and will default to 0 (NONE). Argument bi can be omitted and will default to +b (BLEND). webp image /*FRAME_OPTIONS -file_i +di]] e.g -frame one.webp +100 -frame two.webp +100+50+50 -frame three.webp +100+50+50+1+b Where: file_i is the i'th frame (WebP format), xi,yi specify the image offset for this frame, di is the pause duration before next frame, mi is the dispose method for this frame (0 for NONE or 1 for BACKGROUND) and bi is the blending method for this frame (+b for BLEND or -b for NO_BLEND). Var webp = require ( 'webp-converter' ) //pass input images(.webp image) path with FRAME_OPTIONS, as array,ouput image will be animated. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |