Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kunall17 opened this issue Jul 30, 2019 · 3 comments
Assignees

Comments

@kunall17
Copy link

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)

@aditimadan-Cloudinary
Copy link

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.

@kunall17
Copy link
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

@shirlymanor
Copy link

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants