1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/Constants.java Mon Nov 17 18:13:59 2014 +0100
1.3 @@ -0,0 +1,27 @@
1.4 +/**
1.5 + * copy-image-resizer
1.6 + * Copyright © 2014 František Kučera (frantovo.cz)
1.7 + *
1.8 + * This program is free software: you can redistribute it and/or modify
1.9 + * it under the terms of the GNU General Public License as published by
1.10 + * the Free Software Foundation, either version 3 of the License, or
1.11 + * (at your option) any later version.
1.12 + *
1.13 + * This program is distributed in the hope that it will be useful,
1.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.16 + * GNU General Public License for more details.
1.17 + *
1.18 + * You should have received a copy of the GNU General Public License
1.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
1.20 + */
1.21 +package cz.frantovo.copyImageResizer;
1.22 +
1.23 +/**
1.24 + *
1.25 + * @author Ing. František Kučera (frantovo.cz)
1.26 + */
1.27 +public class Constants {
1.28 +
1.29 + public static final String JAVA_PACKAGE = Constants.class.getPackage().getName();
1.30 +}
2.1 --- a/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/RecursiveImageResizer.java Mon Nov 17 18:12:57 2014 +0100
2.2 +++ b/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/RecursiveImageResizer.java Mon Nov 17 18:13:59 2014 +0100
2.3 @@ -25,10 +25,7 @@
2.4 import java.io.FileOutputStream;
2.5 import java.io.IOException;
2.6 import java.io.InputStream;
2.7 -import java.nio.channels.Channels;
2.8 import java.nio.channels.FileChannel;
2.9 -import java.nio.channels.ReadableByteChannel;
2.10 -import java.nio.channels.WritableByteChannel;
2.11 import java.util.logging.Level;
2.12 import java.util.logging.Logger;
2.13 import javax.imageio.ImageIO;
2.14 @@ -49,12 +46,12 @@
2.15
2.16 private void resizeFile(File inputFile, RecursiveOptions options) throws ResizeException {
2.17 File inputFileRelative = relativize(options.getInput(), inputFile);
2.18 - log.log(Level.FINE, "Resizing file: {0}", inputFileRelative);
2.19 + log.log(Level.FINER, "Resizing file: {0}", inputFileRelative);
2.20
2.21 ImageFormat format = ImageFormat.getMatching(inputFile.getName());
2.22
2.23 if (format == null) {
2.24 - log.log(Level.FINE, "Skipping file: {0} (no image format matched this extension)", inputFileRelative);
2.25 + log.log(Level.FINER, "Skipping file: {0} (no image format matched this extension)", inputFileRelative);
2.26 } else {
2.27 try {
2.28 for (SizeSpecification size : options.getSizes()) {
2.29 @@ -67,7 +64,7 @@
2.30 resizer.resize(image, output, size, format);
2.31 }
2.32 } else {
2.33 - log.log(Level.INFO, "File: {0} has already required size → just copy", inputFileRelative);
2.34 + log.log(Level.FINER, "File: {0} has already required size → just copy", inputFileRelative);
2.35 justCopy(inputFile, outputFile);
2.36 }
2.37 }
3.1 --- a/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/SingleImageResizer.java Mon Nov 17 18:12:57 2014 +0100
3.2 +++ b/java/copy-image-resizer/src/cz/frantovo/copyImageResizer/SingleImageResizer.java Mon Nov 17 18:13:59 2014 +0100
3.3 @@ -59,7 +59,7 @@
3.4 }
3.5
3.6 if (type == BufferedImage.TYPE_CUSTOM) {
3.7 - log.log(Level.FINE, "Setting default image type: from TYPE_CUSTOM to TYPE_INT_ARGB");
3.8 + log.log(Level.FINER, "Setting default image type: from TYPE_CUSTOM to TYPE_INT_ARGB");
3.9 type = BufferedImage.TYPE_INT_ARGB;
3.10 }
3.11