![]() ![]() Each operating system is a little different, but in Ubuntu for example, the fonts are located within the /usr/share/fonts directory and contains a list of all available system fonts you may use in the above command. The selection of fonts varies depending on your computer, but all standard fonts that are generally used will be there. There is a huge list of colors available, and if desired you may list all colors supported by your computer with the command: cb:>showrgb There are many ways to convert PNG files to JPG files on Linux, but the fastest and best way is to use ImageMagick, a command-line utility that can convert images, including PNG ones. ![]() Please note, you must be careful with the -draw option, which must begin in single quotes followed by the location of the top left most point, then by the text of the caption surrounded by double quotes. ![]() It runs on Linux, Windows, Mac Os X, iOS, Android OS, and many other operating systems. The above command will place a caption of "Warm Regards from the Family" onto the source image using the font Helvetica 14pt in yellow, with the top left point of the image starting at 270x160 pixels, and save the results in DEST_FILE. ImageMagick is a free and open source, feature-rich, text-based, and cross-platform image manipulation tool used to create, edit, compose or convert bitmap images. Use the following command to add a caption to an image: convert profile.jpg -pointsize 14 -font helvetica -fill yellow -draw 'text 270,160 "Warm Regards from the Family" ' profile_cap.jpg For single files, I am using the following ImageMagick commands (as google suggests ): For png convert file.png -sampling-factor 4:2:0 -strip -quality 85 -interlace PNG -colorspace sRGB file.png For jpg convert file.jpg -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB file. Another excellent feature of the convert tool is the ability to instantly add captions to images, including where in the image to place the caption, plus the font family, size and color to use. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |