Package org.ofbiz.product.image

Examples of org.ofbiz.product.image.ScaleImage


                return ServiceUtil.returnError("Unable to write binary data to: " + file.getAbsolutePath());
            }

            /* scale Image in different sizes */
            String viewNumber = String.valueOf(productContentTypeId.charAt(productContentTypeId.length() - 1));
            ScaleImage imageTransform = new ScaleImage();
            Map<String, Object> resultResize = FastMap.newInstance();
            try {
                resultResize.putAll(imageTransform.scaleImageInAllSize(context, filenameToUse, "additional", viewNumber));
            } catch (IOException e) {
                String errMsg = "Scale additional image in all different sizes is impossible : " + e.toString();
                Debug.logError(e, errMsg, module);
                return ServiceUtil.returnError(errMsg);
            } catch (JDOMException e) {
View Full Code Here

TOP

Related Classes of org.ofbiz.product.image.ScaleImage

Copyright © 2018 www.massapicom. 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.