Понадобилось сделать аватарки и кнопки и иконки для сайта. И еще понадобятся скоро баннеры, да не простые, а "резиновые" (fluid or adaptive). Надо вспомнить, что у меня есть для работы с изображениями. Начал с Gimp, поставил ImageMagic, вспомнил, что недавно поставил Inkscape и в сентяюре надо было раскурочить какое-то видео, потому у меня есть ffmpeg. Все эти инструменты можно использовать для редактирования изображений. Здесь я конвертирую картинки в png и делаю для всех фон прозрачным. Для нескольких изображений это проще делать в ImageMagick
ImageMagick v6 Examples -- Masks In these examples we look at the special handling of transparency, the transparency channel, using masks, and ultimatally the removal of unwanted backgrounds, or other elements, such as signs, text, spam.
Examples of ImageMagick Usage
Using Gimp to batch convert images to another format in Windows - здесь в ответах есть все варианты, например вариант с imagemagick mogrify -format jpg *.png
Вопросы на askubuntu.comPortable Network Graphics is a bitmapped image format and video codec that employs lossless data compression
How to Convert JPG to PNG
Как сделать анимацию в GIMP
Buttons, icons, web Tutorial: Create soft glassy buttons
Web 2.0 button with reflection
Canvas Creation Canvases are used by ImageMagick both as a starting image for drawing on, backgrounds to overlay images with transparent areas, or even just as part of general image processing. They can be a solid color, or a range of colors, or even a tile of a smaller image. Here we look at just some of the methods that can be used to generate a whole range of canvas images.
Montage, Arrays of Images The original use of "montage" is to generate tables of image thumbnails, that is, to reference thumbnails of large collections of images, especially photos. And while it still can be used for that purpose, it can also do a lot more. This page examines what you can do with montage, and how you can use it on your own images.
Простейшие команды для конвертации¶
В Windows строке (cmd) пришлось убирать из имен файлов дефисы (-), они же минусы.
F:\stradorusite\images\all-smetyru>convert all/*.jpg a1/*.png
Resize or Scaling ImageMagick v6 Examples -- Resize or Scaling (General Techniques)
Fill Area Flag ('^' flag) As of IM v6.3.8-3 IM now has a new geometry option flag '^' which is used to resize the image based on the smallest fitting dimension. That is, the image is resized to completely fill (and even overflow) the pixel area given.
F:\stradorusite\images>convert nanocad/*.png -resize 35x28^ nanocadicons/*.png
Background Removal (первая ссылка)¶
convert cyclops.png -bordercolor white -border 1x1 \
-alpha set -channel RGBA -fuzz 20% \
-fill none -floodfill +0+0 white \
-shave 1x1 cyclops_flood_3.png
Посты чуть ниже также могут вас заинтересовать
Комментариев нет:
Отправить комментарий