Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make gif pictures online?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Recently, I want to be a website made by gif online, so I studied p_w_picpathmagick and graphicsmagick to make gif pictures.

The station has been made: interested friends can take a look at it first.

Http://www.sosogif.com/make_online.jsp

Address 1: http://www.quzhuanpan.com/home/sourceList.jsp?type=6

Address 2: http://www.quzhuanpan.com/download/checkResult.action?id=30&type=6

Install p_w_picpathmagick

The following is the core process of making gif to share with you. I hope you like it.

@ apt-get install p_w_picpathmagick

Convert + profile "" out/ test.gif

@ + profile "*": Exif information is not stored in the picture. You must use it, otherwise the image is too large.

Convert-colors 100 + profile "" out/ test.gif

@-colors colors: set the number of colors used for images. This parameter should be specified if you are generating png or gif images.

Note: the picture is getting smaller.

Convert-resize 200x200-colors 100 + profile "" out/ test.gif

@-resize width x height!: change the size, if you use an exclamation point, it means that the visual scale is not retained and the size is forced to match the given width and height; if only the width or height is given, such as the parameters in the form of "width x" or "x height" (the effect of "x height" and "width x height" is the same), the size is changed proportionally based on the known parameters.

Convert-rotate 90 test1.gif heh.gif

@ rotate 90 degrees

Convert-fill white-pointsize 24-draw "text 10 text 15 'sosogif.com'" heh.gif hh.gif

@ put a watermark on the picture, white, text coordinates in: 10x50 location

Install graphicsmagick

@ apt-get install graphicsmagick

How to use @ GraphicsMagick image processing system

Gm identify test.gif

@ display image file details

Gm montage-mode concatenate-tile 3x1 00d5154fe8fe11e587cba6a921a498bf-www.dubixiazi.com.jpg 00eac261e90d11e59a56a6a921a498bf-www.dubixiazi.com.jpg 00ed5ea1e90611e587bfa6a921a498bf-www.dubixiazi.com.jpg concatenated.jpg

@ combine three images into one image

Gm convert 2.png 2.gpg

@ format conversion

Gm convert-density 288-geometry 25% 2.gpg 3.jpg

Reduced to the original 1max 4, and the dpi is 288

Gm convert "Image.gif [0]" first.gif

@ extract the first frame from the gif file

Gm convert-delay 20 00*.jpg j.gif

@ each detection delay is 20 minutes to play gif.

Gm convert-loop 50 frame*.gif animation.gif

@ Let the animation cycle 50 times

Gm convert input.jpg-resize "500x500 >" output_1.jpg

@ added >, which means that the "zoom out" operation is carried out only when the width and height of the picture are greater than the given width and height. If you do not add >, the picture will be enlarged.

Gm convert input.jpg-thumbnail "100x100" output_1.jpg

@ proportional thumbnail (disadvantage: generating white edges)

Gm convert input.jpg-thumbnail "100x100!" Output_2.jpg

@ non-proportional thumbnails, thumbnails according to given parameters (disadvantage: aspect ratio will change)

Gm convert input.jpg-thumbnail "100x100"-background gray-gravity center-extent 100x100 output_4.jpg

@ the size of the generated image is: 100x100, and the proportion is guaranteed. At the same time, the picture is not cropped, and the missing part is filled with the specified color.

Gm convert-colorspace RGB 2.png 22.png

The @ bit depth is changed from 32 to 24, and after the conversion, the color of the picture will change slightly.

Other:

Use + profile "*" in ImageMagick to delete pictures without storing additional information.

In JMagick, use the profileImage ("*", null) method on the MagickImage class to delete pictures without storing additional information.

Use-quality in ImageMagick to control the quality of pictures

In JMagick, the setQuality (80) method on the ImageInfo class is used to control the quality of the picture.

@ http://www.oksousou.com

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report