001/* 002 * (C) Copyright 2007 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Nuxeo - initial API and implementation 016 * 017 * $Id$ 018 */ 019package org.nuxeo.ecm.platform.picture.api; 020 021/** 022 * @author Max Stepanov 023 */ 024public class ImagingConvertConstants { 025 026 /** Operations */ 027 public static final String OPERATION_RESIZE = "pictureResize"; 028 029 public static final String OPERATION_ROTATE = "pictureRotation"; 030 031 public static final String OPERATION_CROP = "pictureCrop"; 032 033 /** Operation specific options */ 034 public static final String OPTION_RESIZE_WIDTH = "width"; 035 036 public static final String OPTION_RESIZE_HEIGHT = "height"; 037 038 public static final String OPTION_RESIZE_DEPTH = "depth"; 039 040 public static final String OPTION_CROP_X = "x"; 041 042 public static final String OPTION_CROP_Y = "y"; 043 044 public static final String OPTION_ROTATE_ANGLE = "angle"; 045 046 public static final String CONVERSION_FORMAT = "conversionFormat"; 047 048 public static final String JPEG_CONVERSATION_FORMAT = "jpg"; 049 050 private ImagingConvertConstants() { 051 } 052 053}