Languages

Menu
Sites
Language
Tizen image resizing.

I need to open a gallery , and select the image and want to crop it with desired size how i can do that.

Edited by: rohit sijwali on 07 Oct, 2015

Responses

4 Replies
Alex Dem

Hi,
Regarding crop, resize , rotation (any real transformation of image) try to look look at this tutorial:
https://developer.tizen.org/dev-guide/2.3.1/org.tizen.tutorials/html/native/multimedia/image_util_tutorial_n.htm
& api:
https://developer.tizen.org/dev-guide/2.3.1/org.tizen.native.mobile.apireference/group__CAPI__MEDIA__TOOL__MODULE.html

Also afaik it could be possible for jpeg files, I think you sequence should be next:
1. decode image file with image_util_decode_jpeg
2. create transformation, media format & media packet (as in tutorial)
3. perfrom transformation
4. store result which comes into registered  image_util_transform_completed_cb as new media packet into new file with image_util_encode_jpeg

I 'll try to provide code snippet later.
Alexey.

Alex Dem

Hi,
Something like this:
https://developer.tizen.org/community/code-snippet/native-code-snippet/crop-jpeg-file
Alexey.

Palitsyna

Hello,

you can find information about image resizing or image croping in Tizen IDE Help: Open your IDE -> Help tab -> Help contents -> Image Crop

Palitsyna

Hello,

just one more example, probably, it is something you are looking for: https://developer.tizen.org/community/code-snippet/native-code-snippet/crop-image?tab=all