Enabled fields :ĬompressorSettings.mode : Values strict, stretch. Be careful with CORS restrictions!ĬompressorSettings : Object with the compression settings. ImageSrc : Source of the image to compress/resize. Image compressor has one useful method: run(imageSrc, compressorSettings, proceedCompressedImage) Such stepping allows limited interpolation on compressed image and gives more similar to original image result INSTALLATION npm install image-compressor Within each step image gets compressed by a half(original size : width, height, size after first step is width / 2, height / 2 ). That means an image gets compressed for some discrete steps. Image compressor uses step-down algorithm for scaling down images. For image/png free space aside result image filled transparently. Such free space is filled with the #FFFFFF color for image/jpeg mime type. Free space can appear aside of result image due to possible different aspect ratios of original and compressed images. Original image is centered in the result image. Result image has no dimensional distortions, original image is being compressed with the original aspect ratio. Image compressor uses canvas in the background for resizing operations. However within ES6 JS project after first import of the module, ImageCompressor will be available at window.ImageCompressor = Now ImageCompressor is module, so that strange access sequence appeared. If you want to use it within ES5 JS project under the window object, you should access it by. Version 2.0 released! Now available as simple import from 'image-compressor' On top of that, it is extremely flexible as it works excellently with other programs and plug-in types.Image-Compressor Frontend javascript module for resizing and compressing images. This is due to the significant reduction in image file size. With RIOT you can drastically reduce image size while keeping its original quality so that they're ready to be sent by email or published online with a more seamless and quick sending process. Reduce size, keep the same impressive quality For instance, if you download their RAW + HDR plugin package you will then be capable to open HDR, OpenEXR, and RAW camera images. Although by far, it only supports input plug-ins types. Apart from that, it can be extended with plug-ins to enhance its functionality as well. This photography tool works as a plug-in for other programs like IrfanView or GIMP. Just remember to save your changes before closing the program, because it won't display any warning message or save the image automatically if you quit the app. You can reduce any photo to a fifth of its original size without any significant loss of quality. Optimization results in RIOT are simply impressive, especially in JPG. Great optimization and plug-in capabilities This feature is thanks to the program's double-pane interface. On top of that, you can also immediately check the results and do comparisons between the original photo and compressed image in real-time. Meanwhile, for GIF and PNG, color reduction options are provided. It works with a wide range of graphic formats, including Photoshop's PSD, and saves optimized images to JPG, GIF, and PNG.įor JPG, you can even choose the quality level. With RIOT you can solve either of these issues with a single click. When uploading images to your online gallery or blog, it's important to ensure a proper loading speed, but it's also essential to keep quality as high as possible.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |