Page 1 of 1

Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Mon Nov 18, 2024 7:30 pm
by dige
Hi guys,

I hope someone here can lend me a hand! 😊

Freeimage.dll is a fantastic library that, although a bit outdated, can still load many graphic formats very quickly. I particularly love the efficient JPEG loading—it’s super handy!

There are already some wrapper codes shared here in the forum, which are great. Additionally, there’s an unreleased version 3.19 on SourceForge that includes some bug fixes.

Unfortunately, despite my best efforts, I wasn’t able to compile the 64-bit version myself using Visual Studio 2017. And that’s where I need your help!

Could anyone here kindly create an windows x64-bit release? It would be incredibly helpful!

Here’s the link to the SVN:
https://sourceforge.net/p/freeimage/svn ... age/trunk/

Thanks so much in advance for your time and support! 🙏


Kind regards

Dige

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Mon Nov 18, 2024 7:44 pm
by miso
There are 32 bit and 64 bit binaries under files at sourceforge to download.
Edit: ah sry, you want an unreleased version. My bad.

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Mon Nov 18, 2024 10:44 pm
by chi
I only tested the release version with

Code: Select all

Import "FreeImage.lib"
  FreeImage_GetVersion()
EndImport

Debug PeekS(FreeImage_GetVersion(),-1, #PB_Ascii)
freeimage-svn-r1911-FreeImage-trunk.7z

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Tue Nov 19, 2024 8:34 am
by dige
Great! Thank you yery much chi 👍👍👍

How or with what did you create it?

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Tue Nov 19, 2024 9:00 am
by BarryG
dige wrote: Mon Nov 18, 2024 7:30 pmI particularly love the efficient JPEG loading—it’s super handy!
You can load many different formats (including JPEGs) without a third-party library and without the built-in PureBasic image decoders. So you may not even need FreeImage.dll anymore?

See here -> viewtopic.php?t=74117

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Tue Nov 19, 2024 11:05 am
by dige
Hi BarryG, you are of course right, with PB's own functions you can load the most common graphic formats.
But what I also need the FreeImage Lib for:
  • Metadata support : Comments, Exif (including GPS and maker notes), IPTC, Adobe XMP, GeoTIFF and GIF animation metadata
  • Support for High Dynamic Range images : 48-bit HDR images
  • Support for RAW files from digital photo cameras (CRW/CR2, NEF, RAF, DNG, ...)
  • Support for WebP files
  • Load the file as fast as possible, sacrificing some quality : I need this for high-resolution images such as 360-degree panoramic images with a width of 20,000 pixels and more -> 1 second loading time instead of 6 seconds makes a big difference for me

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Tue Nov 19, 2024 11:24 am
by Fred
Does it support cmake for build ? If yes, it should be very easy to build it

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Tue Nov 19, 2024 12:21 pm
by chi
dige wrote: Tue Nov 19, 2024 8:34 am Great! Thank you yery much chi 👍👍👍

How or with what did you create it?
Glad it works! I ended up using VS2019 and had to retarget the project to SDK 10.0.22621.0 and PTS v142 to get it to compile. v143 had too many errors. I also tried the makefile, but my MinGW is too new and I didn't feel like downgrading ;)

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Wed Jan 15, 2025 9:54 am
by dige
Hi Chi,

Recently, you managed to compile a DLL from the latest FreeImage snapshot - Thanks again for this!

I’ve just come across an interesting plugin for FreeImage that enables loading HEIC images. Since I have a lot of photos in this format from my iPhone, this could be really useful for me.

https://github.com/mnaydenov/FreeImage-Sidecar

Unfortunately, I’m not sure how to set this up or how much effort it would require. Would you have the time and interest to give it a try?

Thanks in advance! 😊

Re: Need Help Compiling 64-bit Version of FreeImage.dll (Unreleased 3.19)

Posted: Mon Feb 10, 2025 9:05 am
by chi
Must have missed your post, sorry... I'm not that frequently around here anymore.

FreeImage-Sidecar was last updated 4 years ago, so it probably won't work with the unreleased version 3.19 I built for you last time. It also uses CMake and I've been using VS. Too much work for a project I'm quite frankly not really interested in, so I'll have to pass, sorry. Maybe someone else here can help you?!