+/**
+ * An image cropper that allows the user to crop an image before uploading it.
+ *
+ * @author Olaf Braun
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.2
+ */
+
import ImageResizer from "WoltLabSuite/Core/Image/Resizer";
import { dialogFactory } from "WoltLabSuite/Core/Component/Dialog";
import Cropper, { CropperCanvas, CropperImage, CropperSelection } from "cropperjs";
/**
* Returns the image cropper configuration for this file processor.
+ *
+ * @since 6.2
*/
public function getImageCropperConfiguration(): ?ImageCropperConfiguration;
}
namespace wcf\system\file\processor;
+/**
+ * @author Olaf Braun
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.2
+ */
final class ImageCropSize implements \JsonSerializable
{
public function __construct(
namespace wcf\system\file\processor;
+/**
+ * The configuration for the image cropper.
+ *
+ * @author Olaf Braun
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.2
+ */
final class ImageCropperConfiguration implements \JsonSerializable
{
public readonly float $aspectRatio;
namespace wcf\system\file\processor;
+/**
+ * @author Olaf Braun
+ * @copyright 2001-2024 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since 6.2
+ */
enum ImageCropperType
{
case MinMax;