• 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 - eddy2099

1
In fact, I found that the MultiPages Support for Firemonkey 64 Bit is also not working. It is clearly an issue with getting the TIFFLib to work.

I did try to compile the TIFFLib for Mac but pretty much got lost in the compilation, I need to just dump the dylib in the bundle and use it anyway. Not very familiar with all those compilation of source codes but I will see what I can do.

Thanks.
2
Thanks. I could explore that avenue. Currently, I am saving single page TIFF using firemonkey native routine and then using tiffutil in command line to merge them together. Not the best solution but it does work in my initial test.
3
No, I was not able to. I believe there is no support for Multipage TIFF for Mac from this library.
4
I am not sure if I am doing this correct

Code (pascal) Select
procedure TForm2.Button1Click(Sender: TObject);
var sm : TSingleImage;
var mm : TMultiImage;
var y,x : integer;
var ss : string;

begin
if OpenDialog1.execute then
   begin

   y := opendialog1.Files.Count-1;
   mm := TMultiImage.Create;

           sm := TSingleImage.Create;

   for x  := 0 to y do
   begin
   ss := IncludeTrailingBackslash(ExtractFilePath(opendialog1.Files.Strings[x]));
      memo1.Lines.Add(opendialog1.Files.Strings[x]);
     sm.LoadFromFile(opendialog1.Files.Strings[x]);



     if mm.ImageCount = 0 then
       mm.Assign(sm)
       else

        mm.AddImage(sm)     ;




   end;

     mm.SaveMultiToFile(ss+'vampyre.tif');

if mm.AllImagesValid  then
         label1.Text := 'Good'
         else
         label2.text := 'Bad';

   end;

end;


I tested the above codes in Windows, it worked fine as the MultiPage TIFF is saved. However, deploying to the Mac, the AllImagesValid shows as True but then nothing is saved.

Is there anything I might be doing wrong ?

Thanks in advance

**Update** I changed the filename from TIFF to a JPG name and it worked on the Mac. I think the LibTIFF library doesn't seems to work with the Mac as it wasn't ported over. Perhaps that was the issue. Any solution ?

Overall, a very nice library. Would be perfect if the TIFF module works on the Mac.
SMF spam blocked by CleanTalk