Skip to content

Instantly share code, notes, and snippets.

venkatachalam venkatchm

Block or report user

Report or block venkatchm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1fd321f2c1c4f0491b4bbb709c3baa8f
func transformedVideoURL(_ publicID: String?) -> URL? {
let transformation = CLTransformation()
transformation?.width = Float(960)
transformation?.height = Float(540)
transformation?.crop = "pad"
guard let _transformation = transformation, let _publicID = publicID else {
View gist:32fa52a885b3c9d985536df428b609ef
enum CloudinaryMedia: String {
case image
case video
}
//MARK: Deleting multiple resources
func deleteResources(of child: Child,
completionBlock: @escaping (_ success: Bool, _ error: DescriptiveErrorType?) -> Void) {
View gist:caa68485e2bfc7f954185b475bbb1eb7
private static func upload(_ anything: AnyObject,
completion: @escaping (Result<CloudinaryResponse>) -> Void ) {
let transformation = CLTransformation()
transformation?.width = 720
transformation?.height = 1280
transformation?.audioCodec = .none
guard let _transformation = transformation else {
return
View cloudinaryfetchauthenticatedimages.txt
static func getCroppedImageUrl(imageUrl: String?, width: CGFloat, height: CGFloat) -> URL? {
guard let _imageUrl = imageUrl else {
return nil
}
do {
let cloudinary = try CLCloudinary(url: Configuration.cloudinaryURL())
let transformation = CLTransformation()
transformation?.width = width
transformation?.height = height
You can’t perform that action at this time.