Clarified Validate warnings for PNG files
This commit is contained in:
parent
cbd1a610ce
commit
1590a70627
1 changed files with 3 additions and 3 deletions
|
@ -516,9 +516,9 @@ public class ModUtilities {
|
||||||
|
|
||||||
String colorTypeString = "???";
|
String colorTypeString = "???";
|
||||||
if ( pngr.imgInfo.channels == 4 )
|
if ( pngr.imgInfo.channels == 4 )
|
||||||
colorTypeString = "RGB+Alpha";
|
colorTypeString = String.format( "RGB+Alpha w/%dbit channels", pngr.imgInfo.bitDepth );
|
||||||
else if ( pngr.imgInfo.channels == 3 )
|
else if ( pngr.imgInfo.channels == 3 )
|
||||||
colorTypeString = "RGB";
|
colorTypeString = String.format( "RGB w/%dbit channels", pngr.imgInfo.bitDepth );
|
||||||
else if ( pngr.imgInfo.channels == 2 )
|
else if ( pngr.imgInfo.channels == 2 )
|
||||||
colorTypeString = "Gray+Alpha";
|
colorTypeString = "Gray+Alpha";
|
||||||
else if ( pngr.imgInfo.channels == 1 && !pngr.imgInfo.greyscale )
|
else if ( pngr.imgInfo.channels == 1 && !pngr.imgInfo.greyscale )
|
||||||
|
@ -528,7 +528,7 @@ public class ModUtilities {
|
||||||
|
|
||||||
pendingMsgs.add( new ReportMessage(
|
pendingMsgs.add( new ReportMessage(
|
||||||
ReportMessage.WARNING,
|
ReportMessage.WARNING,
|
||||||
String.format( "ColorType: %s (Usually 32bit Truecolor+Alpha)", colorTypeString )
|
String.format( "Type: %s (Usually RGB+Alpha w/8bit channels)", colorTypeString )
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue