Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6093

Use ImageMagick to Generate Image from Text?

$
0
0

I'm trying to use ImageMagick to create thumbnail images that are 3840 x 2160.

I need the image to have a black background and white text. The text should be centered vertically and horizontally.

I want to be able to set a font size, but if the text would extend off the image, automatically decrease the font size so it fits with some amount of padding on the left and right.

I will be doing this in bulk with several hundred thousand images. From what I've been able to find, it looks like you always have to set a font size and there's no way to make it dynamic.

Can anyone confirm if this is possible to do?


Viewing all articles
Browse latest Browse all 6093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>