cloudinary / cloudinary/cloudinary_java

Transformation erroneously replacing all overlay spaces to underscore

オープン
#160 コメント 9 件 リアクション 0 件 担当者 1 名 @aditimadan-Cloudinary が担当を希望しています GitHub で見る
question
主要言語
Java
スター
175
フォーク
113
PR マージ指標
30日以内にマージされた PR はありません

説明

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:
```java
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。