Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70770

ImageResizer Android not sizing image

$
0
0

@andyhb wrote:

I have been trying all day to get the @ionic-native/image-resizer/ngx image resizer working, it looks so simple from the documentation however the component successfully creates a new file but it is the same size as the original.

I am trying to use the component to create a thumbnail, I use the following code: -

        const options = {
            uri: uri,
            folderName: folderName,
            quality: 100,
            width: 200,
            height: 200
        } as ImageResizerOptions;

        return await this.imageResizer.resize(options);

Based upon this I would expect the image to be sized to 200px but it is not, the new file is created but it has the same dimensions as the original.

Anybody any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>