Skip to content

MediaManager changes "-" to "sub" while using public id of image in overlay method #94

Open

Description

@kunall17

When passing a public id products:wO_ieThMSrGaI8c-_swfzw-0000000000 in the overlay method like in the code snippet given

Transformation x = new Transformation();
Log.d("SEEHERE", "addTagsOverlay@@@: " + x.generate());
x.overlay(alteredPublicId);
Log.d("SEEHERE", "addTagsOverlay$$: " + x.generate());

Which gives me an output of

07-30 18:55:46.686 9350-9350/com.marsplay D/SEEHERE: addTagsOverlay@@@: 
07-30 18:55:46.687 9350-9350/com.marsplay D/SEEHERE: addTagsOverlay$$: l_products:wO_ieThMSrGaI8csub_swfzw-0000000000

Which alters the public Id of the image I've passed before. ( - changes to sub in the string)

Activity

  1. aditimadan-Cloudinary commented on Jul 30, 2019

    @aditimadan-Cloudinary

    If the value being passed to the overlay is "products:wO_ieThMSrGaI8c-_swfzw-0000000000" then the resultant overlay value will be "l_products:wO_ieThMSrGaI8c-_swfzw-0000000000". What is the value you are expecting? Can you please elaborate the issue in detail.

  2. kunall17 commented on Jul 31, 2019

    @kunall17
    Author

    Thanks for the reply, but the generated public id is not the same for the overlay image
    In the code down below

            Transformation transformation = new Transformation();
            String publicId = "wO_ieThMSrGaI8c-_swfzw-0000000000";
            transformation.overlay(publicId);
            String result = transformation.generate();
    

    Here I get the result string as l_wO_ieThMSrGaI8csub_swfzw-0000000000 which alters the public id of my image.

    I'll highlight the difference where the publicId is changing - l_wO_ieThMSrGaI8csub_swfzw-0000000000

    Let me know If I am understanding things a bit wrong?
    We are using 1.26.0 version of cloudinary sdk

  3. shirlymanor commented on Jul 31, 2019

    @shirlymanor

    @kunall17 In order to provide better feedback, can you please provide the expected result?
    For example:
    http://res.cloudinary.com/marsplay/image/upload/l_products:wO_ieThMSrGaI8c-_swfzw-0000000000,w_100/sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions