Automating Mug Layout
-
socialgiraffe
- Posts: 4597
- Joined: 16 Jun 2011, 23:40
- Been thanked: 1 time
- Contact:
Re: Automating Mug Layout
Can we see an example of the sort of thing it will output?
USING: Whatever it takes to get the job done...
Re: Automating Mug Layout
No probs. This is shrunk from 5.3Mb to 148Kb, so it might not be very clear, but the original is sharp and crisp.
[ATTACH=CONFIG]1931[/ATTACH]
[ATTACH=CONFIG]1931[/ATTACH]
- Attachments
-
- vB_ID:1931
- web_SUNSETSmugprint-ceram.jpg (90.49 KiB) Viewed 3 times
Re: Automating Mug Layout
No probs. This is shrunk from 5.3Mb to 148Kb, so it might not be very clear, but the original is sharp and crisp.
I've added on pic with a different aspect ratio to show how it copes with resize.
It will also let me overlay, so for example I can start with a template with maybe a pattern with a white box in it for the pic, and just change the pic but keep the background on all pics the same. (I'm still fine tuning the positioning.
I found that imagemagick is available for Mac and Windows, so anyone can make a script program to do this.
It will work with ANY font on your computer - so long as there are NO SPACES in the file names of the fonts. So Times_New_Roman.ttf willwork, but Times New Roman.ttf will NOT work.
An image is dropped into a folder and the first script program is run. That sizes the image and generates the coloured text in the desired font. This takes about 1 second. That is repeated 3 times and each file is renamed so you get name1.jpg, name2.jpg and name3.jpg. At the moment that is a manual task, because I want it to work with more than 3 images at a time, but I'm fixing that.
[ATTACH=CONFIG]1932[/ATTACH]
The three images containing a pic and text are copied to the print folder and the print script is run. And this is the final result spaced for ceramic mugs. For polysub mugs it will make the spaces between the pics smaller.
[ATTACH=CONFIG]1931[/ATTACH]
Now, I use LibreOffice Draw to print, and when I drop a large jpeg file onto the page, it automatically resizes the width to fit between the page margins. So the original of this image fits perfectly on a portrait page, but hangs below a landscape one. Which happens to be perfect.
[ATTACH=CONFIG]1934[/ATTACH]
I've added on pic with a different aspect ratio to show how it copes with resize.
It will also let me overlay, so for example I can start with a template with maybe a pattern with a white box in it for the pic, and just change the pic but keep the background on all pics the same. (I'm still fine tuning the positioning.
I found that imagemagick is available for Mac and Windows, so anyone can make a script program to do this.
It will work with ANY font on your computer - so long as there are NO SPACES in the file names of the fonts. So Times_New_Roman.ttf willwork, but Times New Roman.ttf will NOT work.
An image is dropped into a folder and the first script program is run. That sizes the image and generates the coloured text in the desired font. This takes about 1 second. That is repeated 3 times and each file is renamed so you get name1.jpg, name2.jpg and name3.jpg. At the moment that is a manual task, because I want it to work with more than 3 images at a time, but I'm fixing that.
[ATTACH=CONFIG]1932[/ATTACH]
The three images containing a pic and text are copied to the print folder and the print script is run. And this is the final result spaced for ceramic mugs. For polysub mugs it will make the spaces between the pics smaller.
[ATTACH=CONFIG]1931[/ATTACH]
Now, I use LibreOffice Draw to print, and when I drop a large jpeg file onto the page, it automatically resizes the width to fit between the page margins. So the original of this image fits perfectly on a portrait page, but hangs below a landscape one. Which happens to be perfect.
[ATTACH=CONFIG]1934[/ATTACH]
- Attachments
-
- vB_ID:1934
- SAM_1289.JPG (64.69 KiB) Viewed 3 times
-
- vB_ID:1932
- web_Sunsets2.jpg (77.02 KiB) Viewed 3 times
Re: Automating Mug Layout
This forum does some really weird stuff when trying to post. Here's attempt 5 of the same post.
No probs. This is shrunk from 5.3Mb to 148Kb, so it might not be very clear, but the original is sharp and crisp.
I've added one pic with a different aspect ratio to show how it copes with resize.
It will also let me overlay, so for example I can start with a template with maybe a pattern with a white box in it for the pic, and just change the pic but keep the background on all pics the same. (I'm still fine tuning the positioning.
I found that imagemagick is available for Mac and Windows, so anyone can make a script program to do this.
It will work with ANY font on the computer - so long as there are NO SPACES in the file names of the fonts. So Times_New_Roman.ttf willwork, but Times New Roman.ttf will NOT work.
An image is dropped into a folder and the first script program is run. That sizes the image and generates the coloured text in the desired font. This takes about 1 second. That is repeated 3 times and each file is renamed so you get name1.jpg, name2.jpg and name3.jpg. At the moment that is a manual task, because I want it to work with more than 3 images at a time, but I'm fixing that.
The three images containing a pic and text are copied to the print folder and the print script is run. And the result is a one page image spaced for ceramic mugs and a one page image spaced for polysub mugs.
Now, I use LibreOffice Draw to print, and when I drop a large jpeg file onto the page, it automatically resizes the width to fit between the page margins.
No probs. This is shrunk from 5.3Mb to 148Kb, so it might not be very clear, but the original is sharp and crisp.
I've added one pic with a different aspect ratio to show how it copes with resize.
It will also let me overlay, so for example I can start with a template with maybe a pattern with a white box in it for the pic, and just change the pic but keep the background on all pics the same. (I'm still fine tuning the positioning.
I found that imagemagick is available for Mac and Windows, so anyone can make a script program to do this.
It will work with ANY font on the computer - so long as there are NO SPACES in the file names of the fonts. So Times_New_Roman.ttf willwork, but Times New Roman.ttf will NOT work.
An image is dropped into a folder and the first script program is run. That sizes the image and generates the coloured text in the desired font. This takes about 1 second. That is repeated 3 times and each file is renamed so you get name1.jpg, name2.jpg and name3.jpg. At the moment that is a manual task, because I want it to work with more than 3 images at a time, but I'm fixing that.
The three images containing a pic and text are copied to the print folder and the print script is run. And the result is a one page image spaced for ceramic mugs and a one page image spaced for polysub mugs.
Now, I use LibreOffice Draw to print, and when I drop a large jpeg file onto the page, it automatically resizes the width to fit between the page margins.
- Attachments
-
- vB_ID:1937
- SAM_1289.JPG (64.69 KiB) Viewed 3 times
-
- vB_ID:1936
- web_SUNSETSmugprint-ceram.jpg (90.49 KiB) Viewed 3 times
-
- vB_ID:1935
- web_Sunsets2.jpg (76.75 KiB) Viewed 3 times
-
spongerobinson
- Posts: 470
- Joined: 21 Feb 2013, 22:32
- Contact:
Re: Automating Mug Layout
i use cinema 4d to do my mug samples. not quite as automated as your process, obviously requires cinema 4d too, but get some really nice results which I think look great on my website. have shown them to a few people who haven't been able to tell they aren't real photos!
[ATTACH=CONFIG]1938[/ATTACH][ATTACH=CONFIG]1939[/ATTACH]
[ATTACH=CONFIG]1938[/ATTACH][ATTACH=CONFIG]1939[/ATTACH]
- Attachments
-
- vB_ID:1939
- mugsample2.jpg (43.03 KiB) Viewed 3 times
-
- vB_ID:1938
- mugsample.jpg (97.74 KiB) Viewed 3 times
Re: Automating Mug Layout
Hi spongerobinson. I started out with the idea of projecting an image onto a pic of a mug. then got sidetracked by the rotating idea because i was curious. So I have a nice pic of a mug prepared. Then I got side tracked by the thought that it would be easy to automate the layouts.
Now I have that working and I've looked at your pic, I will get back to the original project so it outputs not just the layout, ready to print, but a front and back sample on a graphic of a mug.
Thanks for nudging me back on path.
Now I have that working and I've looked at your pic, I will get back to the original project so it outputs not just the layout, ready to print, but a front and back sample on a graphic of a mug.
Thanks for nudging me back on path.
Re: Automating Mug Layout
For me this started because someone on this forum posted asking if it was possible to project an image onto a curved surface. That led me to wonder about animation, then on the the other stuff like autoomating my layouts for printing., Which also happened to lead to the montage of 4 pics into one for the layouts.
Anyway, for anyone interested in playing with ideas, here's Fred's how to and script for doing the cylinder thing and it also shows how to project onto a mug. Note though, his scripts are for non-commercial use.
http://www.fmwconcepts.com/imagemagick/ ... /index.php
Anyway, for anyone interested in playing with ideas, here's Fred's how to and script for doing the cylinder thing and it also shows how to project onto a mug. Note though, his scripts are for non-commercial use.
http://www.fmwconcepts.com/imagemagick/ ... /index.php
Re: Automating Mug Layout
why not use photoshop action scripts or animator that already exist 
http://www.howtoprintstuff.co.uk <-- How To Print Stuff BLOG
Who is online
Users browsing this forum: No registered users and 1 guest
