do not use lossless compression on dyntextures
parent
ef8097f998
commit
84235900b2
|
@ -588,7 +588,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
result = OpenJPEG.EncodeFromImage(joint, true);
|
result = OpenJPEG.EncodeFromImage(joint, false);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -215,8 +215,8 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Bitmap image = new Bitmap(stream);
|
using(Bitmap image = new Bitmap(stream))
|
||||||
|
{
|
||||||
// TODO: make this a bit less hard coded
|
// TODO: make this a bit less hard coded
|
||||||
if((image.Height < 64) && (image.Width < 64))
|
if((image.Height < 64) && (image.Width < 64))
|
||||||
{
|
{
|
||||||
|
@ -251,7 +251,8 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
|
||||||
|
|
||||||
using(Bitmap resize = new Bitmap(image, newSize))
|
using(Bitmap resize = new Bitmap(image, newSize))
|
||||||
{
|
{
|
||||||
imageJ2000 = OpenJPEG.EncodeFromImage(resize, true);
|
imageJ2000 = OpenJPEG.EncodeFromImage(resize, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|
Loading…
Reference in New Issue