MRaster examples 21.0.0.0
Image Processing Library
|
Simplified code for for web page examples. More...
Go to the source code of this file.
Simplified code for for web page examples.
Copyright (c) 1988-2015, Mitchell Jay Richling https://www.mitchr.me All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Create a gif like this: time convert -delay 1 -loop 0 -dispose previous mandelbrot_count_movie_???.tiff mandelbrot_count_movie.gif Convert TIFFs to PNGs: ls mandelbrot_count_movie_???.tiff | xargs -P 8 -I{} sh -c 'echo {}; convert {} $(echo {} | sed "s/\.tiff$/.png/;")' Convert PNGs into a WEBM ffmpeg -r 15 -i mandelbrot_count_movie_%03d.png -crf 20 mandelbrot_count_movie.webm Convert TIFFs to PNGs at 45% size: ls mandelbrot_count_movie_???.tiff | xargs -P 8 -I{} sh -c 'echo {}; convert {} -resize 45% $(echo {} | sed "s/\.tiff$/_45.png/;")' Convert 45% PNGs into a WEBM ffmpeg -r 15 -i mandelbrot_count_movie_%03d_45.png -crf 20 mandelbrot_count_movie_45.webm
Definition in file mandelbrot_count_movie.cpp.