Skip to main content

How can I generate a flat ZIP with no folders hierarchy?

Comments

4 comments

  • Amit Kumar Verma

    while downloading zip with fl_flatten tag with duplicate images
    suffix is adding after image extension like abc.jpg-2 . so images are displaying with unknown extensions. please add suffix before extensions !!!

    0
  • Nadav Ofir

    Thank you for pointing this out.
    This should be fixed by the beginning of next week.
    UPDATE: Issue was resolved.

    0
  • Alex Caldas

    Hi Nadav,

    I wrote a quick script on .net to download all images scaled down to 100px, I'm able to download the zip, but I cannot figure out where to put the this flatten flag, could you please shade some light on this?

    Cloudinary cloudinary = new Cloudinary(account);

    Transformation transform = new Transformation();

    transform.Height(100);
    transform.Crop("scale");

    MultiParams parameters = new MultiParams("kiss");

    parameters.Format = "zip";
    parameters.Transformation = transform;

    MultiResult result = cloudinary.Multi(parameters);

    if (result.Uri != null)
    {
    string url = result.Uri.ToString();

    Response.Write("" + url + "");
    }

    0
  • Nadav Ofir

    Hi Alex, our .NET libraries have not yet been updated with the flatten option.
    Furthermore, we're currently working on a significant upgrade to these libraries including support of the new generate_archive API.

    0

Please sign in to leave a comment.