Package com.cloudinary

Examples of com.cloudinary.Transformation.width()


  public void testGetUploadPreset() throws Exception {
    // should allow getting a single upload_preset
    String[] tags = { "a", "b", "c" };
    Map context = Cloudinary.asMap("a", "b", "c", "d");
    Transformation transformation = new Transformation();
    transformation.width(100).crop("scale");
    Map result = api.createUploadPreset(Cloudinary.asMap("unsigned", true,
        "folder", "folder", "transformation", transformation, "tags",
        tags, "context", context));
    String name = result.get("name").toString();
    Map preset = api.uploadPreset(name, Cloudinary.emptyMap());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.