Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Galfar

Pages: [1] 2 3 4 ... 25
Thanks for the report, just pushed your fix to the repo.

Bugs And Other Insects / Re: RotateImage crash with certain angles
« on: 10 August 2018, 01:49:35 »

I've just tested your sample (0->360 degrees) and I've had no crashes
(Lazarus 1.8.4 on Win10, Imaging latest rev. from May 2018, just empty new LCL app).

What versions exactly did you use? Maybe some compiler settings are affecting this?

I'm going to update the website with current status in coming days.

Imaging has has repo on Github for some time now:

Could you check with the latest version of Imaging? There was a rework of the Lazarus packages in March 2018.

Thanks for the tip, looks pretty nice.

Help & Questions / Re: Convert png with transparency to a bitmap
« on: 6 February 2018, 03:10:03 »
If I understand it correctly, you need to create one image and fill it with your desired background color. Then load your PNG to another image and draw it over the first image with alpha blending. Finally, save the result to a bitmap. 

It's not very different but the the end result does not work yet :( There are crashes that I have not yet figured out.

What works fine in MacOS now is dynamic linking to libtiff like in Linux. It's not enabled by default though
since I guess not many Mac users have libtiff installed (contrary to Linux situation).

Suggestions, Feature Requests, Contributions / Re: Thread Safety
« on: 10 November 2017, 00:58:54 »

yes the library is not really thread safe -
most of the library core is from 2003 & 2004 with no thread safety in mind.

Of course, it's been sitting in my todo list for a long time now.
There are several suspect places mostly related to image loading and saving,
rest of the library should be quite ok.
What I'm mostly worried about is that used 3rd party libs like OpenJpeg and libtiff
would cause problems.

Anyway, improvements to thread safety are planned but that "time for the library" is still very limited :(

Precompiled LibTiff for FPC has been finally added to Imaging for Win32 and Win64.
In Linux it's now using dynamic linking to libtiff since there it's already installed on most systems or simple to install where not.

Thanks for the patch, finally applied it.

Imaging now has up to date repos also here:

Help & Questions / Re: How to determine image size
« on: 20 March 2015, 16:34:44 »
This would be very helpful but unfortunately is not supported.

For each image format this must be done differently but at least the most common formats (JPEG, PNG) would be nice.

Unfortunately, I only had enough time to add TIFF support for Win64 and Linux for Imaging version for Deskew.
OSX support was nearly finished but I have no idea when I will be able to finish it.

Help & Questions / Re: LCLImager demo error
« on: 4 June 2014, 03:15:30 »
Please try the latest Imaging revision, it works for me in Lazarus 1.2 without problems.

Help & Questions / Re: Accessing compressed jpeg data?
« on: 4 March 2014, 01:40:56 »
You would have to directly interface with JpegLib, not a pretty thing to do  :(

I've been working on TIFF loader/saver for Imaging that won't need LibTiff as compiled objects
so in few weeks there will be TIFF support on more platforms (and LibTiff only as an option).

Pages: [1] 2 3 4 ... 25