1.3.5 • Published 3 years ago

@koalaranger/upcloudify v1.3.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Upcloudify (Development) · NPM Version

Rev.DateAuthorDscription
1.0Nov 30, 2022Kolya Nikolai MadridanoAdded revision table and convert other options to built-in functions
Video TypeExtensionMIME Type
Flash.flvvideo/x-flv
MPEG-4.mp4video/mp4
iPhone Index.m3u8video/x-mpegURL
iPhone Segment.tsvideo/MP2T
3GP Mobile.3gpvideo/3gpp
QuickTime.movvideo/quicktime
A/V Interleave.avivideo/x-msvideo
Windows Media.wmvvideo/x-ms-wmv
Image TypeExtensionMIME Type
PNG.pngimage/png
JPG.jpgimage/jpg
JPEG.jpegimage/jpeg
SVG.svgimage/svg+xml
WEBP.webpimage/webp
AVIF.avifimage/avif

Cloudinary homepage

cloudinary credentials

    // Configuration
    const upcloudify = new CloudinaryUpload({
        api_key: "927*********4",
        api_secret: "LUlMVq******-Lf06*****",
        cloud_name: "d************g"
    });

    // files must be an array of File
    const files = [
        {
            fieldname: 'file',
            originalname: 'sample_image.jpg',
            encoding: '7bit',
            mimetype: 'image/jpeg',
            destination: 'C:\\Users\\USERNAME\\AppData\\Local\\Temp',
            filename: '771ec752e412cf',
            path: 'C:\\Users\\USERNAME\\AppData\\Local\\Temp\\771ec752e412cf',
            size: 40055
        }
    ]

    // Uploading images
    const result = await upcloudify
        .cartoonify() // add cartoonify effect
        .blur(300) // add blurry effect
        .uploadImage(files);

    // Uploading videos
    const result = await upcloudify.uploadVideo(files);
PreviewUsage
cloudinary options.applyFilter('aurora')
cloudinary options cartoonify.cartoonify()
cloudinary options opacity.opacity(30)
cloudinary options pixelate.pixelate(20)
cloudinary options gradient.gradient()
cloudinary options border.border({ size, color })
cloudinary options replace color.replaceColor({ original, tolerance, newcolor })
cloudinary options round.borderRadius({ crop, radius })
cloudinary options round.vectorize({ crop, radius = "max" })
PreviewUsage
cloudinary options.resize({ height, width })
KeyTypeUsageDefault
filesFile []files you want to upload to the cloudundefined
isUniqueFilenamebooleanThe uploaded file will have a unique name if set to true.true
cropstringfill, padfill
radiusnumber or string1 to 100, "max"default
heightnumberNo information givendefault
widthnumberNo information givendefault
1.3.5

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago