• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

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

46
JPEG file format does not support transparency, it's just not stored in the file.
If you want JPEG with transparency try saving it as JNG file format
(but only a handful of programs can read these).
47
Help & Questions / Re: ifBinary save bmp Problem
30 November 2012, 00:40:38
Saving of ifBinary files is currently supported only for TIFF and PNG file formats.
48
Unfortunately, the Delphi wrapper in FreeImage is for FreeImage functions only - so FreeImage could be used in Delphi to load and save
RAWs but no functions of LibRAW for developing the images are exposed via FreeImage.
49
Hi,
Unfortunately, I don't have a PhotoShop currently to test it.
Maybe you could try turning off ImagingPSDSaveAsLayer option.
That would save whole image with alpha as RGBA background raster,
maybe the alpha selection will work and there could be a way to turn
the raster to RGB only and losing the original transparency in the process.
Working with PSD layers is long planned feature but there's a lot of these and only a little time.
50
Hi,

integrating libRaw to FreeImage is easy since they are both C++ libraries.

For integration of C/C++ lib with Imaging in Pascal there are 3 options:
1) compile to shared library (DLL/SO) and link dynamically
2) compile to object files and link to Pascal program (like OpenJpeg and LibTiff in Imaging)
3) translate whole lib from C++ to Pascal (like zlib and jpeglib in Imaging)

Basically they rank in the same order in difficulty of integration.
I think 1) is easiest to start with as I see that libRaw comes with C API as well.
You would need to compile libRaw to DLL and write some short import unit in Pascal (with declaration of functions
and some types you want to use from the DLL).
Do you want to just load/save the images from RAW formats or some more functions from the lib?
51
Help & Questions / Re: Delphi XE2 32/64
25 September 2012, 23:44:41
See http://galfar.vevb.net/imaging/smf/index.php/topic,806.0.html topic for links to latest version.
52
News & Announcements / Download and Repository links
25 September 2012, 23:41:30
Latest development version:

Full releases (demo binaries, help, ...) - currently VERY outdated:
http://imaginglib.sourceforge.net/index.php?page=down

Newer releases (maybe no binaries, help):
https://github.com/galfar/imaginglib/releases
53
Bugs And Other Insects / Re: GIF metadata saving bug
14 September 2012, 15:57:53
Metadata for saving is currently meant to be set by the application using the library, not the library itself -
since metadata are stored globally and are overwritten by each loaded image
(better solution of course would be to store the metadata directly in each image -
this could be achieved with current version but it's quite complicated).

VampConvert was missing Metadata.CopyMetaItems, that was fixed.

Animated GIFs are converted to A8R8G8B8 format when being animated so they usually cannot be saved
back to GIF (with max 256 colors) correctly. Saving to format that supports A8R8G8B8 is recommended or
another option is to disable GIF auto-animation and thus keep the image in 256 color format.
54
Bugs And Other Insects / Re: Can't load jpeg image
13 September 2012, 21:23:41
And did you try it and it failed with more JPEG files? Or with just one?
55
The batch scripts are being deprecated and will be removed.
There should be project files for Delphi and Lazarus for all libs/packages/demos now.

For Delphi, use *.dpr/*.dpk project files for Delphi version up to XE,
and *.XE2.dproj project files for Delphi XE2+.

SDL demo: compatible SDL headers are now included directly with Imaging demos.
56
Bugs And Other Insects / Re: Can't load jpeg image
13 September 2012, 14:37:49
Thanks for info.

BTW, are you creating GUI or console app in Lazarus? For GUI app Imaging should
automatically use JpegLib from FPC instead of imjdhuff.pas etc.
57
Help & Questions / Re: multi channels
25 June 2012, 02:08:33
Sorry, PSD layers are not supported as of now.
What layer information apart from raw pixels would you like to save?
58
I have fixed one bug in APNG loading code.
Do you still have problems with saving APNGs?
59
Help & Questions / Re: Excellent work
24 June 2012, 22:36:07
Glad to hear that  :)
Unfortunately, there is just one developer with limited time  :(
60
jsj,
seems like the problem is not in GCC, or at least not in CPU architecture.

I did some experiments and the static lib (libtiff.a) produced by GCC is different
when you use "-arch i386" than with no flags. 64bit one is roughly 2x bigger in size
than 32bit one.

Also FPC gives this message:
ld: warning: ignoring file ./libtiff64.a, file was built for archive which is not the architecture being linked (i386)
when trying to link to x86_64 library.
This message is not displayed when linking library generated with "-arch i386".

Anyway, for both libraries linking always ends with:
Undefined symbols for architecture i386:
  "_TiffGetVersion", referenced from:

Maybe symbols are not properly exported or something :(
SMF spam blocked by CleanTalk