Transformation erroneously replacing all overlay spaces to underscore
@aditimadan-Cloudinary is already working on this.
Since May 5, 2019.
Assessment
This issue has not been assessed yet.
Description
Currently, 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:

- Dominant language
- Java
- Stars
- 176
- Forks
- 113
- Avg merge
- 9d 20h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudinary/cloudinary_java
-
`options` map modified directlyMay be free again @adimiz1 claimed this 481 days ago, and no pull request is open. Open
cloudinary/cloudinary_java#383 · 3 comments · 1 reaction · 1 assignee ·
-
Api#resourceByAssetID does not support same options as in documentationMay be free again @adimiz1 claimed this 647 days ago, and no pull request is open. Open
cloudinary/cloudinary_java#357 · 2 comments · 1 assignee ·
-
Readme - Maven dependencyMay be free again @adimiz1 claimed this 754 days ago, and no pull request is open. Open
cloudinary/cloudinary_java#349 · 1 comment · 1 assignee ·
-
cloudinary-http5 ignores system propertiesMay be free again @adimiz1 claimed this 754 days ago, and no pull request is open. Open
cloudinary/cloudinary_java#348 · 2 comments · 1 assignee ·
-
Make usage of http clients (apache, OkHttp, Jetty, Asynch) easierMay be free again @ManishS6 claimed this 772 days ago, and no pull request is open. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudinary/cloudinary_java#343 · 6 comments ·
All issues in cloudinary/cloudinary_java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Backblaze/b2-sdk-java#248 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
IETF-Hackathon/pqc-certificates#351 ·
Maintainers usually reply within 2 days
-
hermes-queue
Difficulty 2/5 Under an hour Newbie friendliness 72/100
chrisalunlloyd2-sudo/mindpalace#393 ·
Maintainers usually reply within 1 day