ImageView Rotation

  1. 5 years ago

    Joel_Eisenstat

    2 Jan 2019 User since 2016

    I have an odd situation where an image ( jpeg ) is saved it is rotated 90 degrees .
    Code is the same as previous ;
    var image1 = ImageView1.image.JPEGRepresentation(0.8);
    var image2 = image1.base64();
    and update is "document" = (decode($$\(image2)$$,\'base64\'))
    I checked if some garbage was added to ImageView1.image such as degrees but none were found.
    Any suggestions as to why to image was rotated.
    Thanks

  2. marco

    3 Jan 2019 Administrator User since 2016

    Have you checked the Transformations section?

  3. Joel_Eisenstat

    3 Jan 2019 User since 2016

    I'll do that but I think it was an anomaly from garbage data . I usually do not touch Transformations. While on the subject is it possible to assess the orientation of the device from Creo ( portrait vs landscape) ? I need to adjust the window for a wide x-ray ( Panographic) .

  4. Valery Tarondeau

    12 Jan 2019 User since 2019

    Same issue here.
    My app takes photos and store them to a SQLite db.
    All the photos are rotated 90 degrees.
    The transformations properties are default.

  5. marco

    13 Jan 2019 Administrator User since 2016

    @Valery Tarondeau @Joel_Eisenstat can you please send a simple project that is able to reproduce the issue? We'll release a new major version next Tuesday and I'd like to have it fixed for that release.

  6. Joel_Eisenstat

    14 Jan 2019 User since 2016

    The project is now working correctly but if I remember correctly a negative integer was introduced in the save function that caused the issue.

  7. marco

    14 Jan 2019 Administrator User since 2016

    @Joel_Eisenstat @Valery Tarondeau issue has been fixed and it will be available in the next upcoming release.

or Sign Up to reply!