cloudinary / cloudinary_kotlin Goto Github PK
View Code? Open in Web Editor NEWCloudinary Kotlin SDK library
License: MIT License
Cloudinary Kotlin SDK library
License: MIT License
I greatly appreciate the type-safety this SDK provides when working with Cloudinary. However, for certain images, my use case requires the ability to add a set of predefined raw transformations at runtime, as provided by our backend.
The iOS SDK contains a rawTransformation
function, as documented here: https://cloudinary.com/documentation/ios_image_manipulation#add_transformations
Requesting the addition of a similar function for the Kotlin SDK. As a workaround I am needing to manipulate the final generated URL which is not ideal.
When the URL to be processed contains image/upload
, that should be dropped from path to remove duplicacy.
For example:
This URL
https://something.furlenco.com/image/upload/v1/bucket/products/5900/hero/1702711218.jpg
should be processed to
https://res.cloudinary.com/key/image/upload/dpr_1.0,named_trans,w_500/v1/bucket/products/5900/hero/1702711218.jpg?
(iOS SDK does this transformation, removing image/upload
from the end path)
But Kotlin SDK sends out this
https://res.cloudinary.com/key/image/upload/named_trans/c_scale,w_500/dpr_1.0/image/upload/v1/bucket/products/5900/hero/1702711218.jpg?
(notice a couple of image/upload
)
Checking the iOS SDK, it does have logic to find and drop things like image/upload..
Can you help me understand why is Kotlin SDK not equipped with a similar logic? Due to this we are not able use the same URL format for both Android and iOS clients.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.