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

Everything else that doesn't fall into one of the other PB categories.
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

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

Post 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
"Daddy, I'll run faster, then it is not so far..."
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

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

Post 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.
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

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

Post 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
Et cetera is my worst enemy
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

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

Post by dige »

Great! Thank you yery much chi 👍👍👍

How or with what did you create it?
"Daddy, I'll run faster, then it is not so far..."
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

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

Post 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
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

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

Post 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
"Daddy, I'll run faster, then it is not so far..."
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Does it support cmake for build ? If yes, it should be very easy to build it
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

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

Post 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 ;)
Et cetera is my worst enemy
dige
Addict
Addict
Posts: 1405
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

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

Post 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! 😊
"Daddy, I'll run faster, then it is not so far..."
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

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

Post 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?!
Et cetera is my worst enemy
Post Reply