Crops photos in WooCommerce with PPOM using Croppie
What is Croppie?
Croppie is a fast, easy to use image cropping plugin with tons of configuration options!
WooCommerce Personalized Product Option
WooCommerce Personalized Product Option Plugin can add 20 types of input fields on product page. Client personalized these product like choose a color for T-Shirt, add text on Mug, upload design for Visiting Cards etc before checkout. The best part of this plugin is image/file upload control with cropping options.
Options
boundary object
The outer container of the cropper.
Default will default to the size of the container
customClass string
A class of your choosing to add to the container to add custom styles to your croppie
Default ‘ ‘
enableExif boolean
Enable exif orientation reading. Tells Croppie to read exif orientation from the image data and orient the image correctly before rendering to the page.
Requires exif.js
Default false
enableOrientation boolean
Enable or disable support for specifying a custom orientation when binding images (See bind method)
Default false
enableZoom boolean
Enable zooming functionality. If set to false – scrolling and pinching would not zoom.
Default true
enforceBoundary boolean * Experimental
Restricts zoom so image cannot be smaller than viewport
Default true
mouseWheelZoom boolean
Enable or disable the ability to use the mouse wheel to zoom in and out on a croppie instance
Default true
showZoomer boolean
Hide or Show the zoom slider
Default true
viewport object
The inner container of the coppie. The visible part of the image
Default { width: 100, height: 100, type: ‘square’ }
Valid type values: ‘square’ ‘circle’