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 ... 24
1
Suggestions, Feature Requests, Contributions / Re: Thread Safety
« on: 10 November 2017, 00:58:54 »
Hi,

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 :(




2
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.


3
Thanks for the patch, finally applied it.

Imaging now has up to date repos also here:
https://bitbucket.org/galfar/imaginglib
https://github.com/galfar/imaginglib

4
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.


5
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.

6
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.
Link: http://sourceforge.net/p/imaginglib/code/ci/default/tarball

7
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  :(

8
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).

9
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).

10
This is fixed now, it was a problem with ZLib library in 64bit Linux.

11
Thanks for this work.

I want to include your LibTiffDelphi FPC modification in Imaging's repository (in Extras\Contrib).
But now I'm little confused what parts of which archive are needed.

Are compiled object files and *.pas files from 4.0.3 archive enough?

12
Help & Questions / Re: Screenshot from opengl
« on: 27 October 2013, 01:38:10 »
Support for frame delays and animation loop count was added finally.

13
Help & Questions / Re: Black background when rotate an image
« on: 15 February 2013, 01:52:48 »
Hello,
unfortunately it's not possible to set the background color with currently implemented rotation method.
One option is to blend the rotated image to another image filled with desired background color.
Image to be rotated must be converted to some format with alpha channel - background after rotation will
be not only black but also transparent.

Check out Deskew for code to merge image with background:
https://bitbucket.org/galfar/app-deskew/src/d9ee5df8742884404bf8df06ed7e0b2aab88ee8f/ImageUtils.pas?at=default#cl-149

14
Bugs And Other Insects / Re: invalid floating point operation
« on: 3 January 2013, 20:36:17 »
Hi,

of what type exactly is MainImage?

Basically you must make sure that
Image.Picture.Bitmap (Image.Picture.Graphic) is of TImagingBitmap type before assigning.
If regular VCL TBitmap is there then transparency won't work.

What works for me is this:
Code: Pascal
  1. // app start
  2. ImagingGraphic := TImagingBitmap.Create;
  3. Image.Picture.Graphic := FBitmap;
  4. ...
  5. // image was updated
  6. ImagingGraphic.Assign(MainImage);
  7. Image.Picture.Assign(nil);
  8. Image.Picture.Assign(ImagingGraphic);
  9. ...
  10. // app exit
  11. Image.Picture.Assign(nil);
  12. ImagingGraphic.Free;

15
You are not doing anything wrong.
Compiler in XE3 is just more strict and does not allow calling constructors inside instances.

builddemos.bat and buildLibrary.bat probably uses older Delphi version that you have installed (do you?).

Solution is to use latest version of Imaging from here http://galfar.vevb.net/imaging/smf/index.php/topic,806.0.html
or use older Delphi version or FPC.

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