The Artima Developer Community
Sponsored Link

Java Buzz Forum
Image Magick - Montage with Transparency

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tim Vernum

Posts: 58
Nickname: tpv
Registered: Dec, 2002

Tim Vernum is passionate about designing secure systems
Image Magick - Montage with Transparency Posted: Jan 11, 2012 12:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Tim Vernum.
Original Post: Image Magick - Montage with Transparency
Feed Title: A word used to describe something
Feed URL: http://blog.adjective.org/feed/category/Development/rss2
Feed Description: Tim's random musings on software development, java, jetty and other such frivolities.
Latest Java Buzz Posts
Latest Java Buzz Posts by Tim Vernum
Latest Posts From A word used to describe something

Advertisement

I wrestled with this problem for a long time before I found the solution, so I'm posting it here.

I had a series of PNG images that I wanted to montage together to I could use them as a single background-image in some css. However, the output montage appeared to lose all the transparency from the input images - the result kept coming out with white where it should be transparent.

I spent a lot of time trying to work out why IM was ignoring my alpha channel - but that's not what was happening.

The problem was that montage by default creates a white background over the whole of the output image. So in fact IM was "correctly" tiling my alpha-aware images on top of a white background.

I change it to

montage -background none {image1} {image2} {image3} -geometry '16x16+0+0' -tile '16x' output.png

Hopefully that will help other people (or me) solve this problem in the future.

Read: Image Magick - Montage with Transparency

Topic: Scala for 2012? Deciding Whether to Invest In a Programming Language Previous Topic   Next Topic Topic: The rise and fall of webOS is an epic tale; webOS != Web OS

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use