Jump to content

JPEG Library Error


Artcare

Recommended Posts

HI,

 

I have successfully run through the program, opting for HSHfitter as there are problems with PTM.

Once I execute I receive a JPEG Library Error, stating "Improper call to JPEG library in state 200". 

 

I have searched extensively for this error message and now seek help here.

 

Andrew

post-1498-0-25656400-1514782838_thumb.jpg

Link to comment
Share on other sites

This error is discussed elsewhere on the forum - including this post with the error name in the post heading - which links to another thread.

 

http://forums.culturalheritageimaging.org/index.php?/topic/207-improper-call-to-jpeg-library-in-state-200/

 

Here are the highest likelihood errors with RTIBuilder

 

First are there spaces anywhere in the filename or elsewhere in the full pathname of your files?

 

Are you using uppercase "JPG" rather than lowercase jpg?  There is a bug in the ptmfitter that doesn't allow use of the uppercase JPG. 

 

If you are on Mac - you can't run RTIBuilder from the disk image (.dmg) you have to drag RTIBuilder to your applications folder from within the disk image.

 

All of these are further explained in the linked discussions.

Link to comment
Share on other sites

I think that the uppercase JPG issue is specific to PTMs.  There are various programs that can rename files.  I use an application called forklift - which I generally use for comparing drives and backups to look for differences, and then sync things, but it happens to have a file rename feature.  There are many other options.  

 

I do recommend that you rule out that there are any spaces in your filenames or pathnames.  The easiest way to do that is by looking at the .lp file that was generated for your data (in the assembly-files folder)  And check the full pathname.

 

Good luck!

Link to comment
Share on other sites

I have manually changed the extension to lower case for each image but again I am stopped by the same error message after the images all execute. I have looked in each of the folders; finished-files, assembly-files, and cropped-files, and find no relevant file to view in RTI viewer. I should also mention that when I searched the forum for this particular error message it came up blank.

 

Thanks again

 

Andrew

Link to comment
Share on other sites

What I was suggesting was to look in the assembly-files folder for the light position file - which will have the .lp extension. Check the pathnames in there to make sure there are no spaces anywhere in the path.  If you find any, then you need to move the folder - with all the sub-folders to a new location that doesn't have this issue.  Then you can "open an existing file" and you should just be able to build the results.  In other words, you shouldn't need to find the highlights and sphere again since that is already done - assuming you resolve any issues with pathnames.

 

There is another listing with this error message - I searched on "jpeg library" and found several entries - including the one I linked to above.  It isn't smart search, and sometimes you have to choose less terms rather than the full message, in case others didn't type in the exact message the same way. 

 

Carla

Link to comment
Share on other sites

Is this what you want to see. Here are the first six lines. Could it be the 92 in the first line. This is from the first file appearing in the folder

 

92
D:\Research Projects\RTI\Dot_painting\jpeg-exports\IMGP8385.JPG -0.8430064 0.5342322 0.06273952
D:\Research Projects\RTI\Dot_painting\jpeg-exports\IMGP8386.JPG -0.78354573 0.29149693 0.5487127
D:\Research Projects\RTI\Dot_painting\jpeg-exports\IMGP8387.JPG -0.6741801 -0.33297077 0.65925086
D:\Research Projects\RTI\Dot_painting\jpeg-exports\IMGP8388.JPG -0.65759754 -0.48703393 0.5747725
D:\Research Projects\RTI\Dot_painting\jpeg-exports\IMGP8389.JPG -0.65153044 -0.6621974 0.37013873
D:\Research Projects\RTI\Dot_painting\jpeg-exports\IMGP8390.JPG -0.69328344 -0.71455485 0.093645304

Link to comment
Share on other sites

This is from the file dot_painting_OriginalSet.lp

 

92
D:\Research Projects\RTI\Dot_painting\jpeg-exports\dot(1).jpg -0.5952802 0.76323223 0.25123307
D:\Research Projects\RTI\Dot_painting\jpeg-exports\dot(10).jpg -0.6552721 -0.08540065 0.7505499
D:\Research Projects\RTI\Dot_painting\jpeg-exports\dot(11).jpg -0.63341236 0.29012674 0.7173669
D:\Research Projects\RTI\Dot_painting\jpeg-exports\dot(12).jpg -0.62648886 0.61444914 0.47954556
D:\Research Projects\RTI\Dot_painting\jpeg-exports\dot(13).jpg -0.6602188 0.70433176 0.26082164

Link to comment
Share on other sites

The problem is clear.  There is a space between Research and Projects in your directory structure.  You can rename this folder, then it should work.

 

The issue with spaces occurs anywhere in the file name path - not just the image file names.

 

The good news is that the fix is easy, and secondly, that you can open the existing .xml file for the project and go straight to building RTIs on the last screen, since you have already detected spheres and highlights.  RTIBuilder will ask if you want to reset the path (since the stored path will be different) say yes - and away you go.

 

Instructions for opening an existing project can also be found in the user guide.

 

Carla

Link to comment
Share on other sites

Thanks for you help and patience Carla. 

I have a successful result now and have placed all RTI assignments in their own primary folder, instead of having pesky subfolders.

 

I am looking forward to applying the technique to further projects.

 

Regards and thanks,

 

Andrew_Thorn 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...