Class ImageManagementServices
java.lang.Object
org.apache.ofbiz.product.imagemanagement.ImageManagementServices
Product Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMultipleuploadForProduct
(DispatchContext dctx, Map<String, ? extends Object> context) static File
checkExistsImage
(File file) createContentAndDataResource
(DispatchContext dctx, GenericValue userLogin, String filenameToUse, String imageUrl, String contentId, String fileContentType) createContentThumbnail
(DispatchContext dctx, Map<String, ? extends Object> context, GenericValue userLogin, ByteBuffer imageData, String productId, String imageName) createNewImageThumbnail
(DispatchContext dctx, Map<String, ? extends Object> context) removeImageFileForImageManagement
(DispatchContext dctx, Map<String, ? extends Object> context) renameImage
(DispatchContext dctx, Map<String, ? extends Object> context) resizeImage
(BufferedImage bufImg, double imgHeight, double imgWidth, double resizeHeight, double resizeWidth) resizeImageOfProduct
(DispatchContext dctx, Map<String, ? extends Object> context) resizeImageThumbnail
(BufferedImage bufImg, double imgHeight, double imgWidth)
-
Constructor Details
-
ImageManagementServices
public ImageManagementServices()
-
-
Method Details
-
addMultipleuploadForProduct
public static Map<String,Object> addMultipleuploadForProduct(DispatchContext dctx, Map<String, ? extends Object> context) throws org.apache.commons.imaging.ImageReadException- Throws:
org.apache.commons.imaging.ImageReadException
-
removeImageFileForImageManagement
-
createContentAndDataResource
public static Map<String,Object> createContentAndDataResource(DispatchContext dctx, GenericValue userLogin, String filenameToUse, String imageUrl, String contentId, String fileContentType) -
createContentThumbnail
public static Map<String,Object> createContentThumbnail(DispatchContext dctx, Map<String, ? extends Object> context, GenericValue userLogin, ByteBuffer imageData, String productId, String imageName) throws org.apache.commons.imaging.ImageReadException- Throws:
org.apache.commons.imaging.ImageReadException
-
resizeImageThumbnail
public static Map<String,Object> resizeImageThumbnail(BufferedImage bufImg, double imgHeight, double imgWidth) -
checkExistsImage
-
resizeImage
public static Map<String,Object> resizeImage(BufferedImage bufImg, double imgHeight, double imgWidth, double resizeHeight, double resizeWidth) -
createNewImageThumbnail
-
resizeImageOfProduct
-
renameImage
-