Transformation erroneously replacing all overlay spaces to underscore
See original GitHub issueCurrently, Transformation class is replacing all spaces on parameters to underscore in this line: https://github.com/cloudinary/cloudinary_java/blob/738b328a9057084097b7e381bf8a6e989cf69b43/cloudinary-core/src/main/java/com/cloudinary/Transformation.java#L723
This is causing some issues, like when I try to use some font name that contains spaces (eg: Roboto Condensed), it replaces with underscores and the URL become invalid (because font is invalid). The same applies to text content (overlay), when using the text My Text Content
it appears on final Image as My_Text_Content
.
Example:
cloudinary.url()
.signed(true)
.resourceType("video")
.transformation(new Transformation()
.height(480)
.width(720)
.crop("fill")
.chain()
.color("white")
.overlay("text:Roboto_70_bold:My Text Content"))
.format("jpg")
.generate("video/2130");
Results in:
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Spaces replaced with underscores in transform - Forums
I am using IDA 7.5.3. When transforming a logical data model to a DB2 physical data model, any spaces in the logical object...
Read more >Replace Low Values with Spaces using SORT
Let's take a look at the solution to the below-mentioned issues. How to replace all LOW-VALUES (X'00') in a file with SPACE (X'40')....
Read more >Replace any data points with spaces with underscores ...
Suppose I have a data frame with some columns containing text and that in some cases there are spaces. In those ...
Read more >Download - Sublime Text
All changes to a document are now represented by dedicated markers in the gutter ... Full inline diffs of each change can be...
Read more >just checking in on you gif
You can change the speed of your GIF (speed up, slow down) and resize your GIFs to fit any social media platform. Hover...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Eduard,
That was a workaround. We also have a TextLayer class - that already handles all the encoding for you: https://github.com/cloudinary/cloudinary_java/blob/master/cloudinary-core/src/main/java/com/cloudinary/transformation/TextLayer.java
Example:
Thanks, Aditi
Hi Eduard,
Can you please try using %20 instead of space and test
Eg:
Thanks, Aditi