So, this first command here is the docker command that I use all the time. Lets jump over to an editor where I have set up a few commands. I also zipped up these images if you wanted to download them and try this out too. So, you can see here I have the 10 images that I created using that Gnuplot tool. All these links are in the episode notes below.Īlright, so lets jump over to the command line and have a look at our images. You can view the Dockerfile over on Github too. I heavily use this container for most of the images you see on this site. ![]() This container also works for converting images, resizing them, and optimizing them for smaller sizes too. My machine broke after a failed upgrade and I was still able to create an episode because my workflow was totally portable with Docker. This actually saved my butt a few weeks ago. The reason I love running this stuff from within Docker is that I do not have all these tools installed on my machine locally. Basically, it is a pretty minimal Alpine image with ImageMagick installed. I created this Docker image called Alpine ImageMagick. I feel it sort of brings the data to life vs just looking at a static image.Īlright, so lets create the animated GIF. Anyways, I just played around with the angles of how the image was plotted and came up with those ten images. Not really related to this episode but pretty awesome that this works totally on-line. Then, you will get a cool image generated out of it. Splot "data.txt" u 1:2:3 with lines lc rgb "black" Set palette rgb 33,13,10 #rainbowset contour base Set grid layerdefault lt 0 linecolor 0 linewidth 0.500 Set terminal svg size 960,560 enhanced fname 'arial' fsize 10 butt solid Next, you paste in your plot script, again I posted the script in the episode notes below. ![]() ![]() I created these source images using this pretty cool site where it is an online version of Gnuplot.īasically, you enter your data, this is my data here and I posted it in the episode notes below too. This was sort of a personal project have I been working on. So, why am I doing this? Well, in an upcoming episode, we will be collecting some sensor data, cleaning and exploring the data, then plotting the dataset on to a map. Just an incredible tool and makes this type of stuff very easy. If you have not used ImageMagick before, it is basically the swiss army knife of image manipulation at the command-line. I created this with Docker and ImageMagick and I wanted to show you my workflow for doing this today. Here is the animated GIF we will be creating today. I wanted to highlight this useful pattern for using utility containers on your desktop because it delivers very reproducible results. In this episode, we are going to walk through an end-to-end workflow for creating animated GIFs using Docker and ImageMagick. Docker Hub - jweissig/alpine-imagemagick.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |