Product gallery and image alt text


1 comment

  • Avatar
    Shirly Manor

    Hi Tobias,

    You can get the alt text and add it as text overlay. For example:


     "mediaAssets": [{
    "tag": "mytag",
    "mediaType": "image",
    "transformation": {
    "crop": "fill",
    transformation: [
    overlay: "text:Arial_80:Text for overlay",
    gravity: "center",
    width: 2.5


    In regard to your other question, there is no easy way to add a download option. However, when adding the flag attachment it will download the image. so you can add `a herf` and set it to the URL:

    var url = cl.url("sample" , {raw_transformation:'fl_attachment'});

    Will reproduce:

    Comment actions Permalink

Please sign in to leave a comment.