mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
TMI-154: Fix for AccessControlException when reading "Generic CMYK.icc"
This commit is contained in:
parent
1ee22e120d
commit
4eb7426596
@ -52,7 +52,7 @@ import java.util.Properties;
|
|||||||
* <p />
|
* <p />
|
||||||
* Color profiles may be configured by placing a property-file
|
* Color profiles may be configured by placing a property-file
|
||||||
* {@code com/twelvemonkeys/imageio/color/icc_profiles.properties}
|
* {@code com/twelvemonkeys/imageio/color/icc_profiles.properties}
|
||||||
* on the classpath, specifying the full path to the profile.
|
* on the classpath, specifying the full path to the profiles.
|
||||||
* ICC color profiles are probably already present on your system, or
|
* ICC color profiles are probably already present on your system, or
|
||||||
* can be downloaded from
|
* can be downloaded from
|
||||||
* <a href="http://www.color.org/profiles2.xalter">ICC</a>,
|
* <a href="http://www.color.org/profiles2.xalter">ICC</a>,
|
||||||
@ -342,7 +342,7 @@ public final class ColorSpaces {
|
|||||||
try {
|
try {
|
||||||
return ICC_Profile.getInstance(profilePath);
|
return ICC_Profile.getInstance(profilePath);
|
||||||
}
|
}
|
||||||
catch (IOException ignore) {
|
catch (SecurityException | IOException ignore) {
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
ignore.printStackTrace();
|
ignore.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user