noobdoesre / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Information messages in the command prompt cannot be eliminated #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When running the application you get information in the command prompt. I use 
it as part of another Python app and this information should not appear to the 
user.

I redirect the output to a "garbage" txt as a solution (Python 2.7).
val = os.system(os.path.join(root,"OPENJPEG","j2k_to_image") + " -i " + imname 
+ " -o " + os.path.join(root,"temp_image.tif") + ' >' + 
os.path.join(root,'exit.txt'))

os.system(os.path.join(root,"OPENJPEG","image_to_j2k") + " -i " + 
os.path.join(root,"temp_image2.tif") + " -o " + imname[0:-4] + 
"_UncertaintyReflectance.jp2" + ' >' + os.path.join(root,'exit.txt'))

However, it works for "j2k_to_image" but not for "image_to_j2k". I think it 
would be nice an option to avoid these information like in kakadu (-quiet).

Thanks in advance 

Original issue reported on code.google.com by xavi.gor...@gmail.com on 1 Mar 2012 at 11:48

GoogleCodeExporter commented 9 years ago
Can you provide a patch ? How do I report a real issue other than printing to 
stdout ?

Original comment by mathieu.malaterre on 21 May 2012 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 29 May 2012 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 25 Feb 2014 at 4:04

GoogleCodeExporter commented 9 years ago
Really we would need a quiet mode in openjpeg.

Original comment by mathieu.malaterre on 14 Mar 2014 at 3:14