<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Convert on Michael’s Domain</title><link>https://jeltsch.org/en/tags/convert/</link><description>Recent content in Convert 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/convert/index.xml" rel="self" type="application/rss+xml"/><item><title>How to determine and convert text file encoding (file, enca, iconv)</title><link>https://jeltsch.org/en/how_to_determine_and_convert_text_file_encoding_file_enca_iconv/</link><pubDate>Wed, 22 Apr 2009 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_determine_and_convert_text_file_encoding_file_enca_iconv/</guid><description>&lt;p&gt;To determine the file type of the file &amp;ldquo;sample.txt&amp;rdquo; you just type:&lt;code&gt;file sample.txt&lt;/code&gt;Usually it&amp;rsquo;ll tell you only that it is a text file. To get to know more about the encoding type:&lt;code&gt;enca -L none sample.text&lt;/code&gt;The -L switch tells the program what language is used in the file. If you don&amp;rsquo;t know, just use none.To convert the encoding from ISO-8859-1 (latin1) to UTF-8:&lt;code&gt;iconv --from-code=ISO-8859-1 --to-code=UTF-8 sample_iso8859-1.txt &amp;gt; sample_utf-8.txt&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Editing (resizing, format converting, compressing) images in the command line with ImageMagick (mogrify, convert)</title><link>https://jeltsch.org/en/editing_resizing_format_converting_compressing_images_in_the_command_line_with_imagemagick_mogrify_convert/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/editing_resizing_format_converting_compressing_images_in_the_command_line_with_imagemagick_mogrify_convert/</guid><description>&lt;p&gt;Resize all tif images in the current directory:&lt;code&gt;mogrify -resize 25% 25% *.tif&lt;/code&gt;Resize all jpeg images in the current directory to a width of 614 pixels and keep the image ratio constant:&lt;code&gt;mogrify -resize 614 *.jpg&lt;/code&gt;As above, but resize the hight to 614 pixels:&lt;code&gt;mogrify -resize x614 *.jpg&lt;/code&gt;Convert all bmp imgaes in the current directory into tiff images:&lt;code&gt;mogrify -format tiff *.bmp&lt;/code&gt;Compress all tiff images in the current directory with ZIP compression:&lt;code&gt;mogrify -compress ZIP *.tiff&lt;/code&gt;I tried to convert also pict files (from Macintosh), but without success, although the pict file format appears to be supported by Imagemagick. In order to make sure that ImageMagick knows that the file to convert is a pict file I used this command:&lt;code&gt;convert pict:Photo0024.PICT tiff:Photo0002.tif&lt;/code&gt;There is also a picttoppm utility in the netpbm package, but it was not anymore included in the version that Suse 9 uses; so I couldn&amp;rsquo;t check that out…Interestingly PixiePlus can display pict files, where does it take the routines from?If you have very large images, the default limits of ImageMagick are resulting in an error(e.g. mogrify-im6.q16: width or height exceeds limit) and you need to edit /etc/ImageMagick-6/policy.xml!&lt;/p&gt;</description></item><item><title>How to convert EMF files into SVG format</title><link>https://jeltsch.org/en/how_to_convert_emf_files_into_svg_format/</link><pubDate>Tue, 06 Mar 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/how_to_convert_emf_files_into_svg_format/</guid><description>&lt;p&gt;The need for this appeared because the Unicorn software that controls our 
 &lt;a href="http://research.med.helsinki.fi/corefacilities/akta/index.html" target="_blank" rel="noopener noreferrer nofollow"&gt;Äkta Explorer&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;
 can only export the raw chromatographic curves in EMF format. Pathetic. After trying out various things, I went with OpenOffice. OpenOffice Draw can import EMF files and save as SVG. Other applications capable of opening EMF are FreeHand and CorelDraw (tested on Macintosh). However, FreeHand cannot export as SVG.&lt;/p&gt;</description></item></channel></rss>