diff options
author | Teravus Ovares | 2009-01-21 11:16:33 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-01-21 11:16:33 +0000 |
commit | 1a55dd11f1e0c17452c3264ff02496d8ced8a421 (patch) | |
tree | a358deb7a59b1a46075b1dc5adf7f359edb3151c /OpenSim/Region/Environment/Modules/Scripting/LoadImageURL | |
parent | - remove extra "; in http_loginform.html.example; fix issue 3025 (diff) | |
download | opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.zip opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.gz opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.bz2 opensim-SC_OLD-1a55dd11f1e0c17452c3264ff02496d8ced8a421.tar.xz |
* More friendly OpenJpeg error handling.
* Often times now the only reason OpenJpeg doesn't work is because it requires Glibc 2.4 The error messages reflect that.
* In J2kDecoder module, It stops trying to decode modules if it encounters a dllnotfound exception and instead sends a full resolution layer that causes the texture sender to only send the full resolution image. (big decrease in texture download speed, but it's better then nasty repeating error messages)
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/LoadImageURL')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs index 631051b..eeeb3ca 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs | |||
@@ -168,7 +168,17 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL | |||
168 | } | 168 | } |
169 | 169 | ||
170 | Bitmap resize = new Bitmap(image, newsize); | 170 | Bitmap resize = new Bitmap(image, newsize); |
171 | byte[] imageJ2000 = OpenJPEG.EncodeFromImage(resize, true); | 171 | byte[] imageJ2000 = new byte[0]; |
172 | |||
173 | try | ||
174 | { | ||
175 | imageJ2000 = OpenJPEG.EncodeFromImage(resize, true); | ||
176 | } | ||
177 | catch (Exception) | ||
178 | { | ||
179 | Console.WriteLine( | ||
180 | "[LOADIMAGEURLMODULE]: OpenJpeg Encode Failed. Empty byte data returned!"); | ||
181 | } | ||
172 | 182 | ||
173 | m_textureManager.ReturnData(state.RequestID, imageJ2000); | 183 | m_textureManager.ReturnData(state.RequestID, imageJ2000); |
174 | } | 184 | } |