Package org.fluxtream.core.images

Examples of org.fluxtream.core.images.ImageOrientation.transform()


                if (image != null) {
                    // drop the alpha channel, if one exists
                    if (image.getColorModel().hasAlpha()) {
                        image = dropAlphaChannel(image);
                    }
                    return JpegImage.create(orientation.transform(Scalr.resize(image, Scalr.Method.AUTOMATIC, Scalr.Mode.AUTOMATIC, lengthOfLongestSideInPixels)));
                }
            }
            catch (Exception e) {
                final String message = "Exception while trying to create a thumbnail";
                LOG.error(message, e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.