<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knowledge Base (Posts about irfanview)</title><link>https://bgstack15.ddns.net/blog/</link><description></description><atom:link href="https://bgstack15.ddns.net/blog/categories/irfanview.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2022 &lt;a href="mailto:bgstack15@gmail.com"&gt;bgstack15&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-SA"
style="border-width:0; margin-bottom:12px;"
src="https://bgstack15.ddns.net/.images/l_by-sa_4.0_88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Sat, 18 Jun 2022 13:15:35 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Convert .dng to .jpg</title><link>https://bgstack15.ddns.net/blog/posts/2022/06/18/convert-dng-to-jpg/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;I had a batch of .dng files that should be converted to .jpg format. I tried a few ways, but they did not preserve all the exif metadata. My process documented below does.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use Irfanview to batch convert all .dng files to .jpg. This will strip a lot of the metadata.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add in metadata from original file.&lt;/p&gt;
&lt;p&gt;time for word in *dng ; do exiftool -all= -tagsfromfile "${word}" -exif:all "${word%%.dng}.jpg" ; done&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This command syntax is verbatim from the man page for exiftool.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Apply original timestamp.&lt;/p&gt;
&lt;p&gt;for word in *dng ; do touch --no-create --reference "${word}" "${word%%dng}jpg" ; done&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optionall, remove the original files.&lt;/p&gt;
&lt;p&gt;rm $( for word in *.jpg ; do echo "${word%%.jpg}.dng" ; done ; )&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;h3&gt;Man pages&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;exiftool(1p)&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;</description><category>convert</category><category>irfanview</category><category>jpg</category><guid>https://bgstack15.ddns.net/blog/posts/2022/06/18/convert-dng-to-jpg/</guid><pubDate>Sat, 18 Jun 2022 13:04:03 GMT</pubDate></item><item><title>Irfanview on Linux</title><link>https://bgstack15.ddns.net/blog/posts/2017/01/19/irfanview-on-linux/</link><dc:creator>bgstack15</dc:creator><description>&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;&lt;a href="http://www.irfanview.info/"&gt;Irfanview&lt;/a&gt; is a fantastic image viewer and batch
utility for the Windows platform. But did you know that you can run Irfanview
on GNU/Linux, and this post will show you how to do that. There is a caveat,
though: Irfanview is not open source. It's freeware. That might turn off some
people, but I still choose to use it. It's unparalleled in the GNU world.
There are several ways to get Irfanview on a GNU/Linux system, and they all
use &lt;a href="https://www.winehq.org/"&gt;Wine&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Installing Irfanview with Winetricks&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://wiki.winehq.org/Winetricks"&gt;Winetricks&lt;/a&gt; is a fancy helper script that
makes repetitive tasks in wine easier. It has an option built-in for
installing Irfanview. It's a piece of cake. Make sure you have wine with your
package manager. &lt;code&gt;dnf install wine&lt;/code&gt; Then download winetricks from the link
above and run the install irfanview command. &lt;code&gt;./winetricks -q irfanview&lt;/code&gt; The
-q is for unattended install. If you want to adjust the settings, run it
without the -q. Observe that winetricks mentions installing mfc42.dll for you.
That is needed for the installer only.&lt;/p&gt;
&lt;h3&gt;Installing Irfanview with a custom-rolled package&lt;/h3&gt;
&lt;p&gt;You can choose to install Irfanview by assembling a package from the rpm spec
and debian control scripts I've assembled at
&lt;a href="https://gitlab.com/bgstack15/irfan"&gt;https://gitlab.com/bgstack15/irfan&lt;/a&gt;. &lt;code&gt;git pull
https://gitlab.com/bgstack15/irfan.git&lt;/code&gt; What is in the git repository is the
source for just the packaging. The actual software source code is downloaded
from official web sources upon building the rpm, and upon the installation of
the dpkg file. As I said above, the software itself is freeware, so the source
is not available for distribution. A wrapper for rpmbuild and dpkg-deb is
provided, as usr/share/irfan/build/pack. Run ./pack rpm or ./pack deb and the
system will build you the type of package you specified, provided you have the
&lt;strong&gt;rpm-build&lt;/strong&gt; or &lt;strong&gt;dpkg-dev&lt;/strong&gt; package. For the rpm, you might need to generate
some directories: &lt;code&gt;mkdir -p ~/rpmbuild/SOURCES ~/rpmbuild/SPECS
~/rpmbuild/RPMS ~/rpmbuild/BUILD ~/rpmbuild/BUILDROOT&lt;/code&gt; In fact, you should run
all this, which will download from gitlab for you the package source. &lt;code&gt;mkdir
-p ~/rpmbuild/SOURCES ~/rpmbuild/SPECS ~/rpmbuild/RPMS ~/rpmbuild/BUILD
~/rpmbuild/BUILDROOT cd ~/rpmbuild/SOURCES mkdir irfan-4.44-1; cd irfan-4.44-1
git init git pull https://gitlab.com/bgstack15/irfan.git cd irfan-4.44-1
usr/share/irfan/inc/pack rpm&lt;/code&gt; The generated rpm will appear in
~/rpmbuild/RPMS/noarch. Then you can run dnf install
./irfan-4.44-1.noarch.rpm.&lt;/p&gt;
&lt;h4&gt;The benefits of rolling your own package&lt;/h4&gt;
&lt;p&gt;The package provided on gitlab includes a menu shortcut to Irfanview, as well
as mimetype defaults for jpg and png. You will be able to see Irfanview in the
list of applications when you select a file in the file manager, right click,
and select "Open with..." The winetricks option does not include that.&lt;/p&gt;
&lt;h2&gt;Reference&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Main irfanview site &lt;a href="http://www.irfanview.info/"&gt;http://www.irfanview.info/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.boekhoff.info/?pid=linux&amp;amp;tip=install-irfan-view-on-linux"&gt;http://www.boekhoff.info/?pid=linux&amp;amp;tip=install-irfan-view-on-linux&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Main wine site &lt;a href="https://www.winehq.org/"&gt;https://www.winehq.org/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Latest winetricks script &lt;a href="https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks"&gt;https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Irfan rpm and deb package source &lt;a href="https://gitlab.com/bgstack15/irfan"&gt;https://gitlab.com/bgstack15/irfan&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><category>images</category><category>irfanview</category><category>linux</category><category>wine</category><guid>https://bgstack15.ddns.net/blog/posts/2017/01/19/irfanview-on-linux/</guid><pubDate>Thu, 19 Jan 2017 20:00:34 GMT</pubDate></item></channel></rss>