![]() 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. Make your animated image play infinitely by setting it to repeat continuously with the loop effect ( e_loop).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. You can let Cloudinary return the optimal format, based on what is supported by the requesting browser, by using automatic format selection ( f_auto:animated). You can do this by adding f_webp,fl_animated,fl_awebp to the URL, using the animated and awebp flags. Additionally, to reduce the size further, reduce the frames per second by adding, for example, fps_6, to use 6 frames per second.Īnother way to reduce the file size is by changing the format to one that's more optimal, for example WebP. For example, scale the image to a width of 600 pixels using c_scale,w_600 (or, w_600 as shown in the video). You can reduce the file size by changing the dimensions to suit the displayed image size. Images in the GIF file format are, in general, very large. For example, to transform an MP4 video to a GIF, specify f_gif in the URL. You can change a video to an animated image format using the format parameter. Click a timestamp to jump to that part of the video. This tutorial presents the following topics. User-defined variables and arithmetic transformations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |