MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 2 posts ] 
How to create a tiled Preview of my Smileyset? (ImageMagick?) 
Author Message
User avatar

Joined: Sun May 02, 2010 3:55 am
Posts: 6
Location: Germany
Has thanked: 0 time
Have thanks: 0 time
Post # 229329
 How to create a tiled Preview of my Smileyset? (ImageMagick?)
Hi there Mepis & Art Lovers,

i have a question about ImageMagick - or - if you know an other way to solve my problem, you are welcome to share that with me :) .

I want to create a Preview / Overview of my self drawn Smileyset, like this:

Image

or this:

Image

This is the old version and a small preview to the new ones.

I don't want to do that one by one again, and so my question is:

How to do that with ImageMagick (or an other way) , so, that it calculates the canvas (image-dimensions) automatically and places the 16x16 Pixel Smileys with an 8 Pixel Space between them and 8 Pixel Space to the Borders? (like in the Preview Images shown here)

Oh, i forgot: The Placement of the Smileys should be 5 in the X Dimension (width) or selectable and in the Y Dimension (height) calculated automatically.

EDIT1: The Output Filename and filetype sould be "overview.png". The Input Filenames should be read in from a Text file called "inputfiles.txt". There i can arrange the Filenames a little bit, because they follow this rule:

currently the smileys are named like this: smileyxx.png - where "xx" is a number, that counts from 00 to 30+ - so the files are called: "smiley00.png", "smiley01.png", "smiley02.png" and so on.

I know, that this can be solved with the ImageMagick Command Line Tool called "montage", but i'm not familiar with that one.

Thank you,
Ingo


Sun May 02, 2010 9:29 am
Profile ICQ
User avatar

Joined: Sun May 02, 2010 3:55 am
Posts: 6
Location: Germany
Has thanked: 0 time
Have thanks: 0 time
Post # 229354
 solved!
I solved this Problem by myself using the ImageMagick Command Line Tool "montage".

Just in case you have a similar problem; i used this to montage the 44 PNG Smileys into one PNG File:

Quote:
montage @myimages.txt -tile 5x9 -geometry +0+4 overview01.png


in @myimages.txt the Input-image-filenames are listed like this:

image00.png
image01.png
image02.png
image03.png
.
.
.
image44.png

so they fit in a grid of 5x9 cells and that is what i wanted. The result/output is not 100% what i wanted, but it's close to it. You can tweak the options by yourself to get what you need as an output-file.

Just in case you wonder, what the output looks like, here it is:

Image

I learned all that from:

http://www.imagemagick.org/script/command-line-processing.php

and:

http://www.imagemagick.org/Usage/montage/

Greetings,
Ingo


Sun May 02, 2010 12:16 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.