React - can't run example

Comments

3 comments

  • Avatar
    Mo Ip

    Hi,

    Thanks for reaching out.

    When applying an overlay, you do not need the version number nor the extension.

    So it should be:

    <Image publicId="v1604681035/sample.jpg" width="300">
    <Transformation
    overlay="beclh7axcufkmovhjlvl"
    width="50"
    />
    </Image>

    Please check out https://cloudinary.com/documentation/image_transformations#image_and_text_overlays for more details.

    Best,
    Mo
    1
    Comment actions Permalink
  • Avatar
    Gayrat

    Thank you very march!

    It;s work!

    P.S. Get public id is impossible from Cloudinary Managment Console /Media library

    For example I'm install and run React sample photo album.

    And samle images upload to my cloud , for example:

    https://res.cloudinary.com/dljazkzna/image/facebook/v1605737520/billclinton.jpg

    I can use it overlay using colon exept / :

    <Transformation
    overlay="facebook:v1605737520:billclinton"
    width="200"
    />

    But will be more simple if public id will be shown in Media library

    I'm find - that public id can be retrived using search_api:
    https://cloudinary.com/documentation/search_api

    But may be exist inner function like getPublicId("https://res.cloudinary.com/dljazkzna/image/facebook/v1605737520/billclinton.jpg") ?

    0
    Comment actions Permalink
  • Avatar
    Eyal Katz Talmon

    Hi, 

    The public ID is essentially the asset's path in Cloudinary, which means the asset's folder path concatenated with the asset's file name. It can be either retrieved by looking at the asset's URL (e.g. - "billclinton" is the public ID of the URL you shared earlier), or, be seen in the media library, by double-clicking an asset -

    Note, that each asset in Cloudinary can be uniquely identified by these attributes - it's public ID, asset type, and delivery type. For instance - the asset which URL you've shared is uniquely identified by "billclinton" as public ID, "image" as asset type, and "facebook" as delivery type. This means that there can't be additional assets in your account that have the same three attributes.

    1
    Comment actions Permalink

Please sign in to leave a comment.