Issue Loading Color Image over 300 DPI

PDF-XChange Editor SDK for Developers

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Issue Loading Color Image over 300 DPI

Post by jeffp »

Hey guys, I haven't posted for a while which means awesome product!

A few of our users have reported this issue. This happens in our scanning flow where we grab the tif file produced by the scanner and then load it in your IIXC_Image object (See code below).

If the scanner is set to produce a color image (24b bit) with a DPI of 300 or higher, then when loading into your IIXC_Image object it produces a line across the page about 3/4 the way down the page.

My attached Files.zip contains two files. First, the "Input.tif", is the file produced by the scanner and you'll see it looks good. Second, the "Output.tif", is the file I get once I load it into your object using the code below and then saving it out to file. We use Delphi.

I never noticed this before.

Code: Select all

function TMyIMG.LoadFromFile(AFileName: String): Boolean;
begin
  Result := False;
  FInitPageCount := 0;
  if IsImgFile(AFileName) then
  begin
    FFileName := AFileName;

    if FileExists(AFileName) then
    begin
      try
        INST_IXC.CreateEmptyImage(FDoc);
        Result := (FDoc.Load(PChar(AFileName), ImageLoad_Deferred) = S_OK);  //ImageLoad_Deferred: loads file info but delays decoding
      except
        WriteToLog('failed to open - error');
      end;

      if Result then
      begin
        FInitPageCount := GetPageCount;
        Result := (FInitPageCount > 0);
      end;
    end;
  end else
  begin
    WriteToLog('failed to open - bad file type');
  end;
end;
Files.zip
(6.74 MiB) Downloaded 28 times
Files.zip
(6.74 MiB) Downloaded 28 times
jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Re: Issue Loading Color Image over 300 DPI

Post by jeffp »

As a follow up, if you open the "Input.tif" file I uploaded in that zip file using your end user PDF XChange Editor, it will show the line towards the bottom as well. So that's another place you can see what's happening.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: Issue Loading Color Image over 300 DPI

Post by Stefan - PDF-XChange »

Hello jeffp,

Thanks for the follow up! I've reproduced the same with the end user Editor - so asked our devs to investigate this further!

Kind regards,
Stefan
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: Issue Loading Color Image over 300 DPI

Post by Stefan - PDF-XChange »

Hello Jeff,

Our devs just confirmed that this has been fixed and the fix will be included in V10.6.0 of our products. I do not yet have a planned release date for that version though, so it could be some time!

Kind regards,
Stefan
jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Re: Issue Loading Color Image over 300 DPI

Post by jeffp »

Sounds good. Thanks for the update.
jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Re: Issue Loading Color Image over 300 DPI

Post by jeffp »

Any ETA on 10.6 yet?
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10961
Joined: Wed Jan 03, 2018 6:52 pm

Re: Issue Loading Color Image over 300 DPI

Post by Daniel - PDF-XChange »

Hello, jeffp

We only have a rough estimate at this time, but we are currently aiming for somewhere in April, assuming that testing goes according to plan.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
jeffp
User
Posts: 923
Joined: Wed Sep 30, 2009 6:53 pm

Re: Issue Loading Color Image over 300 DPI

Post by jeffp »

Any new word on 10.6 release date?
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10961
Joined: Wed Jan 03, 2018 6:52 pm

Re: Issue Loading Color Image over 300 DPI

Post by Daniel - PDF-XChange »

Hello, jeffp

Yes, the target is the end of the month here, so hopefully in the next week. Depending on our internal testing, that may be pushed back by another week or so, but I don't imagine we are more than 2 weeks away at this point, barring any complications.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply