You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "tksharpless" started this thread

Posts: 66

Location: Philadelphia, Pennsylvania

Occupation: Retired S/W engineer

  • Send private message

1

Thursday, September 14th 2017, 5:04pm

JPEG library bug?

I have recently had this output from krpanotools:

ktransform 1.19 Pre Release 3 - 64bit (build 2015-08-04)
loading inputimage ...
libjpeg - Application transferred too few scanlines

when trying to execute this command (in a batch file):
CALL "%~dp0\%KRPANOTOOLSEXE%" sphere2cube view "%%~V" "%%~nV_px.jpg" 0 -90 0 90 -outsize=%cubesize% -jpegquality=92 -jpegoptimize


It has not failed this way in the past. Input file exists and has even dimensions, cubesize is always "1920x1920".

Do you have any insights on this?

-- Tom

2

Thursday, September 14th 2017, 5:58pm

Hi,

as this is happening during loading as it seems, I would assume a corrupted jpeg image...

Have you tried opening that jpeg file in other software? Browsers, image-editing software? Are all able to load the file without errors?

Best regards,
Klaus

  • "tksharpless" started this thread

Posts: 66

Location: Philadelphia, Pennsylvania

Occupation: Retired S/W engineer

  • Send private message

3

Friday, September 15th 2017, 1:12pm

How can you tell that the problem is not on the output side? The error message blames the application for not supplying enough data.

The input jpeg files are not corrupt. They are handled without error by Photoshop, ImageMagick, Windows Media Player etc. In fact I get this problem with jpegs created by Phtoshop and ImageMagick, neither of which is known for making bad jpegs.


I have found numerous web references to bugs that evoked this error message. Most seem to involve a problem with odd vs even scanline counts that may be related to some long-time bug in libjpeg. However in no case did I see a complete and convincing analysis. The authors either found some kind of workaround, or gave up.

I have not tried more recent versions of krpano tools, nor applications other than generating ORBX cubefaces. But I will be glad to perform any tests you suggest.

4

Friday, September 15th 2017, 5:34pm

Hi,

Quoted

How can you tell that the problem is not on the output side?
Because according to your post the error happens during the 'loading inputimage ...' console output.
When the loading would have be done successfully there would be a 'done. (input imagesize WxH)' console output after that.

If you want you can send me your affected image, then I can try to find out more.

Best regards,
Klaus