In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install and use ImageMagick software in Linux system. In view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
ImageMagick is a set of command-line utilities for modifying and manipulating images. ImageMagick can quickly perform operations from a terminal, perform batch processing of many images, or be integrated into a bash script. ImageMagick can perform a variety of operations. This guide will introduce you to the syntax and basic operations of ImageMagick, and show you how to combine operations with many image batches.
1. Installation
ImageMagick, not included in Ubuntu and many other Linux distributions. To install it on Ubuntu, use the following command: sudo apt-get install imagemagick
2. Between format conversions
Convert the format of the image, one of the most basic things you can do with it is to convert between formats. The following command converts the PNG file named "howtogeek.png" in the current directory to an JPEG format: convert howtogeek.png howtogeek.jpg
You can also specify the JPEG image compression level: convert howtogeek.png-quality 95 howtogeek.jpg must be 1 and 100 default to 92
3. Resize the image
The convert command can also quickly resize the image. The following command requires ImageMagick to resize the image to 200 pixels wide and 100 pixels high: convert example.png-resize 200 × 100 example.png
4. Rotate the image
ImageMagick can rotate the image quickly. The following command names the picture howtogeek.jpg, rotates it 90 degrees, and saves the rotated image howtogeek-rotated.jpg:
Convert howtogeek.jpg-rotate 90 howtogeek-rotated.jpg
5. Application effect
ImageMagick can apply a variety of effects of the image. For example, the following command applies an image of the charcoal effect: convert 1234.jpg-charcoal 2 1234-charcoal.jpg
6. Batch processing
The following command rotates all pang images: for file in * .png;do convert $file-rotate 90 rotated-$file
This is the answer to the question about how to install and use ImageMagick software in the Linux system. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.