Skip to main content

Permanently rotating an image using Explicit API

Comments

5 comments

  • Ido

    Hi Dimitry,

     

    The explicit method is mainly used to perform transformations on an already existing resource eagerly before the transformation is requested on the fly

    It does not change the original permanently.

    If you want to perform change to an original image, it should be performed during its upload by using an incoming transformation

    Hope this help.

    Let me know if you have any further questions.

     

    Thanks,

    Ido

    0
  • Dmitry Bezrukov

    Got it, thanks!

    0
  • Dmitry Bezrukov

    Hi again,

    I'd like to use OCR text detection plugin in my project and I've subscribed to its free plan for testing.
    Some files are already uploaded to Cloudinary.
    Is it possible to extract text from an existing image by executing the 'explicit' method?
    As far as I understand, placing { ocr: 'adv_ocr' } parameter to the method should add 'ocr' node to its result.
    But a can't see any. Here's my code:

    app.cloudinary.v2.uploader.explicit(
        publicId, {
            type: 'upload',
            ocr: 'adv_ocr'
        },
        function(error, result) {
           // ...
           res.json({
               // no ocr here
               message: result
           });
        }
    )

    here is the image:
    http://res.cloudinary.com/godovod/image/upload/v1513081984/ocr/pryanik

    and here is the result:
    https://godovod.ru/api/files/ocr?file=ocr/pryanik

    0
  • Dmitry Bezrukov

    ok, I've managed to extract text using cloudinary.v2.api.update method.

    0
  • Ido

    Thanks for the update.

    glad to hear its working :)

     

    Let me know if you have any further questions.

    0

Post is closed for comments.