<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Image on Michael’s Domain</title><link>https://jeltsch.org/en/tags/image/</link><description>Recent content in Image on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/image/index.xml" rel="self" type="application/rss+xml"/><item><title>Taking an webcam image from the command line</title><link>https://jeltsch.org/en/taking_an_webcam_image_from_the_command_line/</link><pubDate>Fri, 05 Apr 2024 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/taking_an_webcam_image_from_the_command_line/</guid><description>&lt;p&gt;There are probably not many use cases, but remote surveillance is an example, both in a malicious and legitimate context. Malware can take pictures of the unwitting user, and &amp;ldquo;Has anybody searched through my office after I forgot to close the door last Friday?&amp;rdquo;, respectively.&lt;/p&gt;</description></item><item><title>Getting Ubuntu Trusty Tahr onto the CuBox Pro</title><link>https://jeltsch.org/en/getting_ubuntu_trusty_tahr_onto_the_cubox_pro/</link><pubDate>Wed, 14 May 2014 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/getting_ubuntu_trusty_tahr_onto_the_cubox_pro/</guid><description>&lt;p&gt;e&lt;strong&gt;UPDATE: The Cubox guys have moved the documentation about how to install to the Cubox Pro. If you need Trusty Tahr for your Cubox Pro, you can download a 4GB image: 
 &lt;a href="https://drive.google.com/open?id=1CgbSfy17-UrWZwBjZtZpHYTkPgw0MXFq" target="_blank" rel="noopener noreferrer nofollow"&gt;https://drive.google.com/open?id=1CgbSfy17-UrWZwBjZtZpHYTkPgw0MXFq&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. You just need to write it to an SD card (using dd) in order to get your system going. If you have a larger SD card, never mind: just dd the image to the SD card and then use 
 &lt;a href="https://gparted.org/" target="_blank" rel="noopener noreferrer nofollow"&gt;gparted&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 or something similar to expand the second partiton (the root partition) to fill the entire SD card. Password/login: cuboxpro/cuboxpro. SSH is enabled, so you should be able to login remotely. It&amp;rsquo;s the desktop version, so you can also connect an HDMI cable and login via the GUI. There is still a youtube video (
 &lt;a href="https://www.youtube.com/watch?v=XfLJAchNu2c" target="_blank" rel="noopener noreferrer nofollow"&gt;https://www.youtube.com/watch?v=XfLJAchNu2c&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 ) on how to use the original cubox installer (
 &lt;a href="http://download.solid-run.com/pub/solidrun/cubox/installer/%29" target="_blank" rel="noopener noreferrer nofollow"&gt;http://download.solid-run.com/pub/solidrun/cubox/installer/)&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, but the latest version of Ubuntu that you can install with that method seems to be 13.10 at the moment of this writing.&lt;/strong&gt; I have been buying a 
 &lt;a href="http://www.solid-run.com/" target="_blank" rel="noopener noreferrer nofollow"&gt;CuBox&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
: perhaps the world&amp;rsquo;s smallest desktop computer. Both at work and at home I need to replace an old, loud LAMP server with something modern. I don&amp;rsquo;t even need a GUI, I am happy to run the server headless. Neither do I need much much speed.The CuBox seems like a great idea: No noise, little power consumption, no space requirements and a decent performance. However, getting it to work was far from trivial. It is definitely not an end user toy, but aimed at the tinckerer. The first difficulty was buying the box. The producer didn&amp;rsquo;t sell it directly at the time (now they do) and the only company that sold it to Finland was UK-based 
 &lt;a href="https://www.newit.co.uk/shop/" target="_blank" rel="noopener noreferrer nofollow"&gt;NewIT&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. Because on the producers homepage they only present their newest models (the &amp;ldquo;CuBox-i&amp;rdquo; models), I wasn&amp;rsquo;t even aware of how many different models they had released. I actually bought the CuBox Pro (but I didn&amp;rsquo;t know about it, because there is also the &amp;ldquo;CuBox-i4Pro&amp;rdquo;, which is the one I rather should have bought. Israel-based SolidRun could do definitely a better job with their web pages. They seem to have a rapid product cycle and drop quickly all links to their &amp;ldquo;older&amp;rdquo; products from their main page. This is irresponsible especially since these products are still sold.I bought the device shortly before 
 &lt;a href="http://www.ubuntu.com" target="_blank" rel="noopener noreferrer nofollow"&gt;Ubuntu&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 14.04 LTS (Trusty Tahr) was released with the intention to install the server version on this device. I bought it with the 4GB SD card with the preinstalled ancient Ubuntu 10.04 (Oneiric Ozelot). I connected it via HDMI to our (not full HD) TV screen and at least the first boot succeeded and the desktop appeared usable, although not snappy. But what the heck, I want to use it as a sever.So the first thing I tried to do was to upgrade to 14.04. I was sure that this would work because the community is stepping in where CuBox fails. Namely by providing ready-to-go disk images to flash to the SD card. I tried Arch Linux, Debian and an early Ubuntu 14.04 release. However, when I inserted the SD card after flashing, the CuBox did not want to boot.Because the Oneiric image (which came on the 4GB card with the device) worked, I flashed it back from a backup (which I had made using dd). Again, Oneric booted up fine. I started to upgrade the distribution to 12.04, which worked somehow, but I lost the graphics display (which I didn&amp;rsquo;t care about). But then the upgrade from 12.04 to 14.04 failed completely. And I definitely want the 14.04, because I want to set it up and forget about it for the next 5 years.However, none of the images provided (by CuBox or the community) wanted to boot (I don&amp;rsquo;t even want a GUI, I am fine with a command line access as I want to use it as a server). I have tried flashing them from Windows and Linux, but it didn&amp;rsquo;t make a difference. What could the reason have been? The partitions on the card are mounted automatically without error when I insert the card to my Ubuntu 14.04 laptop. I finally googled the Model number &amp;ldquo;CBP-300-P&amp;rdquo; which is printed on a sticker on the bottom of the cube. I had started to suspect that it is not me, but some incompatibility or broken hardware. I came across 
 &lt;a href="http://server.vijge.net/static/cubox/irclog/201404/cubox-20140425.html" target="_blank" rel="noopener noreferrer nofollow"&gt;this irc conversation&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 and I realised that I had been pulling the OS images from the CuBox-i wiki pages, whereas my model was a CuBox Pro.The relevant forum is 
 &lt;a href="http://www.solid-run.com/phpbb/viewtopic.php?f=11&amp;amp;t=1638" target="_blank" rel="noopener noreferrer nofollow"&gt;here&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 and the instructions do work. The instructions are not for the faint of heart, but also not overly difficult. You need a HDMI connection to a full HD screen (1920x1080). If you have less than that, you need to connect to the serial console using a mini-USB cable from another computer and use a terminal emulator as they explain 
 &lt;a href="http://wiki.solid-run.com/doku.php?id=products:imx6:microsom:usbuart" target="_blank" rel="noopener noreferrer nofollow"&gt;here&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. The suggested Putty did refuse to make a connection to ttyS0 (from Ubuntu 14.04), but I managed with minicom. However, there was no color coding, but it worked also without.Because you are running the whole OS from the SD card, you might want to limit memory swapping and do a few other changes to prolong the life of the memory card, essentially 
 &lt;a href="https://sites.google.com/site/easylinuxtipsproject/ssd" target="_blank" rel="noopener noreferrer nofollow"&gt;the same as is done for SSD drives&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
.&lt;/p&gt;</description></item><item><title>How to use jhead or exiftool to add a time stamp to a jpg image</title><link>https://jeltsch.org/en/how_to_use_jhead_or_exiftool_to_add_a_time_stamp_to_a_jpg_image/</link><pubDate>Mon, 24 Aug 2009 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_use_jhead_or_exiftool_to_add_a_time_stamp_to_a_jpg_image/</guid><description>&lt;p&gt;If the jpg image doesn&amp;rsquo;t have exif header you need to create it first:&lt;code&gt;jhead -mkexif&lt;/code&gt;Then enter the time stamp data:&lt;code&gt;jhead -ts2009:08:15-10:30:00&lt;/code&gt;Apart from jhead (
 &lt;a href="http://www.sentex.net/~mwandel/jhead/%29" target="_blank" rel="noopener noreferrer nofollow"&gt;http://www.sentex.net/~mwandel/jhead/)&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, there is another frequently used tool to edit exif data: exiftool (
 &lt;a href="https://www.sno.phy.queensu.ca/~phil/exiftool/" target="_blank" rel="noopener noreferrer nofollow"&gt;https://www.sno.phy.queensu.ca/~phil/exiftool/&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 ). When you execute exiftool to display the exif data, you get a list like this:&lt;code&gt;user@laptop:~$ exiftool IMG_001.jpgExifTool Version Number : 10.80File Name : IMG_001.jpg[…]Date/Time Original : 2018:09:02 13:20:13Create Date : 2018:09:02 13:20:13[…]&lt;/code&gt;However, in order to modify a value you need to address the individual tag and the tag name that the command line expects is NOT the same that is given in the list (the tag for &amp;ldquo;Create Date&amp;rdquo; is e.g. &amp;ldquo;CreateDate&amp;rdquo;):&lt;code&gt;exiftool -CreateDate='2009:11:32 09:11:24.991000' IMG_001.jpg&lt;/code&gt;Exiftool is probably the most capable tool, but for the same reason, it is not the most easy to use.IN order to remove all exif data, try:&lt;code&gt;exiftool -all=IMG_001.jpg&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Creating a boot floppy for RedHat 8</title><link>https://jeltsch.org/en/creating_a_boot_floppy_for_redhat_8/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/creating_a_boot_floppy_for_redhat_8/</guid><description>&lt;p&gt;Get the boot floppy image from the RedHat site and write it to a floppy. The floppy should not be mounted while writing:&lt;code&gt;dd if=boot.img of=/dev/fd0&lt;/code&gt;That&amp;rsquo;s actually the command to write any floppy image back to a floppy.&lt;/p&gt;</description></item><item><title>Quick edits of jpg files from within Konqueror (jhead, jpegtran)</title><link>https://jeltsch.org/en/quick_edits_of_jpg_files_from_within_konqueror_jhead_jpegtran/</link><pubDate>Sun, 20 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/quick_edits_of_jpg_files_from_within_konqueror_jhead_jpegtran/</guid><description>&lt;p&gt;I wanted to have a quick way to rotate the images I take with my digital camera. The Olympus Camedia C-4000 always writes &amp;ldquo;1&amp;rdquo; als orientation into the EXIF data (either it doesn&amp;rsquo;t have an orientaiton sensor or it is broken), therefore I cannot rotate the images automatically by the command&lt;code&gt;jhead -autorot *.jpg&lt;/code&gt;So I created a desktop file ~/bin/rotate90clockwise.desktpop with the following content&lt;code&gt;[Desktop Entry] ServiceTypes=image/jpeg Actions=rotate90clockwise [Desktop Action rotate90clockwise] Name=Rotate 90 clockwise Icon=/opt/kde3/share/icons/crystalsvg/22x22/actions/rotate_cw.png Exec=/usr/bin/jhead -cmd &amp;quot;jpegtran -rot 90 &amp;amp;i &amp;gt; &amp;amp;o&amp;quot; %U&lt;/code&gt;Then I made a symbolic link&lt;code&gt;sudo ln -sf ~/bin/rotate90clockwise.desktop /opt/kde3/share/apps/konqueror/servicemenus/rotate90clockwise.desktop&lt;/code&gt; Now when I browse files in Konqueror, I get by right-clicking a jpeg file the additonal option of rotating it. The rotation is lossless BTW and the EXIF information in maintaned.
It is also possible to integrate rotation commands into image viewing software. E.g. if the following script is located in ~/bin&lt;code&gt;!/bin/sh jhead -cmd &amp;quot;jpegtran -rot 90 &amp;amp;i &amp;gt; &amp;amp;o&amp;quot; $*&lt;/code&gt;you can call it from within GQView by adding the scriptname in one of the free slots below the &amp;ldquo;big&amp;rdquo; image editors:&lt;code&gt;Menu name Command line Rotate clockwise rotate_clockwise %f&lt;/code&gt;Edit -&amp;gt; Options -&amp;gt; Editors&lt;/p&gt;</description></item></channel></rss>