Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImageMagick Question
#3
Thumbs Up 
Thanks immensely Ofnuts, as is often the case you were right onto the solution.  Idea

Many people don't know that by including an alpha mask file it's possible to have JPGs with transparency. The reason for my 'problem' is that it takes many hours to render over 4,000 PNGs without having a render farm. It's much faster to render JPGs with their Alpha JPGs. Then converting them into a series of alpha channel PNGs means they can be opened with Gimp or even video editors. The only cost is more disk space but this only temporary.

I experimented with your code and used this which works on Ubuntu 18.04:
for f in *_alpha.jpg; do b=$(basename $f _alpha.jpg); composite -compose copy_opacity ${b}_alpha.jpg $b.jpg $b.png;done

The output program (Mandelbulber2) uses particular filenames and ImageMagick 'compose' wants the alpha.jpg before the standard jpg.
All I have to do is purge the JPG's and I can 'open as layers' in Gimp. Opening in Gimp is memory dependent and with 12Gb ram I can open about 500 layers at a time.

Again, thank you very much I am so happy you solved my problem in 2 hours Smile
Reply


Messages In This Thread
ImageMagick Question - by Tas_mania - 01-21-2019, 02:11 AM
RE: ImageMagick Question - by Ofnuts - 01-21-2019, 07:26 AM
RE: ImageMagick Question - by Tas_mania - 01-21-2019, 10:45 AM
RE: ImageMagick Question - by Ofnuts - 01-21-2019, 01:35 PM
RE: ImageMagick Question - by Tas_mania - 01-22-2019, 12:15 AM
RE: ImageMagick Question - by Tas_mania - 01-23-2019, 12:44 AM
RE: ImageMagick Question - by Tas_mania - 01-28-2019, 11:01 PM
RE: ImageMagick Question - by Ofnuts - 01-29-2019, 01:03 AM
RE: ImageMagick Question - by Tas_mania - 01-29-2019, 10:32 PM
RE: ImageMagick Question - by Ofnuts - 01-29-2019, 11:29 PM
RE: ImageMagick Question - by rich2005 - 01-30-2019, 10:03 AM
RE: ImageMagick Question - by Tas_mania - 01-31-2019, 09:32 AM

Forum Jump: