Mdg:camera image quality

I am using mdg:camera package. I get the imageData from the function

MeteorCamera.getPicture({width: 400, height: 400, quality:100}, function (error, imageData, a, b) {
//imageData 
});

Further I use imageData in one of my template where I pass it and use it as:
<img src="{{imageData}}">

But the image quality is distorted. While I click the pic quality seems to be actual in preview, but once i go ahead to use it quality is completely changed.

Can anyone help me out?

I think if you want to have more careful control over the image quality you might want to use the Cordova camera plugin directly. That camera package is mostly intended for demos or prototypes, which is why it doesn’t have as many configuration options.

‎Well I don’t see a problem with mdg:camera. Because when you click the photo from phone it shows clicked photo to be used or not. The image quality of the image displayed at this point is perfectly fine, but once I get image data which is base64 and we use it, the quality is degraded. I think it’s something to do with base64 encoding.

Regards,

Viddesh

Sent from my BlackBerry 10 smartphone.From: Sashko from MDGSent: Monday 14 March 2016 01:42To: viddeshshinde@aol.comReply To: Meteor forumsSubject: [Meteor forums] [mobile] Mdg:camera image quality

sashko

March 13

I think if you want to have more careful control over the image quality you might want to use the Cordova camera plugin directly. That camera package is mostly intended for demos or prototypes, which is why it doesn't have as many configuration options.

Visit Topic or reply to this email to respond


Previous Replies

![|45x45](upload://oDavSHGDGRoYzDkZy7ackyu1twv.png "viddesh")viddesh

March 13

I am using mdg:camera package. I get the imageData from the function

MeteorCamera.getPicture({width: 400, height: 400, quality:100}, function (error, imageData, a, b) {
//imageData 
});

Further I use imageData in one of my template where I pass it and use it as:

<img src="{{imageData}}">

But the image quality is distorted. While I click the pic quality seems to be actual in preview, but once i go ahead to use it quality is completely changed.

Can anyone help me out?


Visit Topic or reply to this email to respond

To stop receiving notifications for this particular topic, click here. To unsubscribe from these emails, change your user preferences

I got same issues with quality on mdg:camera.
And I think the quality thing would be come from base64 encoding as well, or just a bug with the quality options in mdg:camera.
Does anyone solve this out?

I found the width and height would decide that actual photo size so the quality, we used to say, is decided by that values.
But I still don’t get what is the width and height.
It couldn’t be resolution or actual photo size (cause the photo size is same even I changed it)

BTW, you can get a better quality photo by increase that width and height for now.

Using the Cordova camera plugin I get
Not allowed to load local resource