[android-developers] Re: Thumbnails

2009-04-07 Thread ivan

So how exactly does one shut off thumbnail generation?

What do the Camera.Parameters settings look like to do this?

On Mar 15, 2:47 pm, Iliyan Malchev  wrote:
> On Sat, Mar 14, 2009 at 4:37 AM, Gaurav  wrote:
>
> > I will like some clarifications around thumbnails:
>
> > 1. Whose responsibility is it to generate thumbnails - the android OS
> > or the application developer?
>
> Pre-cupcake, android (specifically, the camera framework which runs in
> the mediaserver) generates the thumbnails for you.  In cupcake, the
> responsibility is going to be split between the camera application and
> the framework.  The reason for the split is that certain JPEG images
> may have thumbnails that exceed the 64k limitation, and will be
> generated without the thumbnail.  The thumbnail, in this case, will be
> generated out of line by the camera app itself.
>
> > 2. If it is that of android OS - Can you please explain when the
> > thumbnail generation happens and whether it is possible to have images
> > on my SD card that don't have thumbnails generated for them.
>
> Thumbnails are generated when you request a snapshot, by the DSP.
> You may turn this off by setting any of the following parameters to
> zero:
>
> thumbnail-width
> thumbnail-height
> thumbnail-quality
>
> > 3. It seems there are thumbnails of two kinds -microand mini - most
> > probably this distinction is based on the size of the thumbnail. Which
> > one of these is generated? Are both always generated?
>
> Unless you override the thumbnail settings, the default is width of
> 512, height of 384, and quality of 90.  I do not suggest you alter
> these parameters, however, other than turning thumbnails off.
>
>
>
>
>
> > 4. I am using a gallery to display all thumbnails.
> > managedQuery( MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,
> > null, null, null, null);
> > Will I end up showing duplicates? - As of now I find this doesn't
> > result in duplicates appearing in my Gallery.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2009-03-17 Thread todd

Yes, you can have both thumbnail types. It's just another row in the
DB. The kind fields would be different for the micro and mini rows.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2009-03-17 Thread Gaurav

One point is still left, can we have duplicate thumbnails of same
kind. Say I have an Image, can there be two thumbnails of micro kind
of the same image? - No, right?

On Mar 17, 4:52 am, Dave Sparks  wrote:
> We have a number of issues with metadata that need to be sorted out.
> Unfortunately, it will have to wait until the next major release.
>
> Unless I'm mistaken, micro-thumbnails are generated by the music
> player for album art. This is just an optimization to improve list
> flinging operations in the music browser.
>
> On Mar 16, 1:20 pm, todd  wrote:
>
> > Having the camera app create thumbs when a photo is taken is great,
> > but another common scenario has been left unanswered. What happens
> > when the user inserts (or copies) images to the SD card?
>
> > I've found that unless the Pictures app is run, no thumbs have been
> > generated for the images on the SD card and I have to add the thumbs
> > myself in order to display thumbnail images.
>
> > Additionally, the gallery/camera apps only create the mini version of
> > the thumbnail and not the micro version. It would be great to have a
> > clear, consistent policy for thumbnail generation of images that
> > reside on the SD card. I can foresee apps battling over thumb
> > creation, some doing it well, others not so well and using different
> > (custom?) sizes for both sizes.
>
> > That's my two cents.
>
> > Todd
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2009-03-16 Thread Dave Sparks

We have a number of issues with metadata that need to be sorted out.
Unfortunately, it will have to wait until the next major release.

Unless I'm mistaken, micro-thumbnails are generated by the music
player for album art. This is just an optimization to improve list
flinging operations in the music browser.

On Mar 16, 1:20 pm, todd  wrote:
> Having the camera app create thumbs when a photo is taken is great,
> but another common scenario has been left unanswered. What happens
> when the user inserts (or copies) images to the SD card?
>
> I've found that unless the Pictures app is run, no thumbs have been
> generated for the images on the SD card and I have to add the thumbs
> myself in order to display thumbnail images.
>
> Additionally, the gallery/camera apps only create the mini version of
> the thumbnail and not the micro version. It would be great to have a
> clear, consistent policy for thumbnail generation of images that
> reside on the SD card. I can foresee apps battling over thumb
> creation, some doing it well, others not so well and using different
> (custom?) sizes for both sizes.
>
> That's my two cents.
>
> Todd
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2009-03-16 Thread Iliyan Malchev

On Mon, Mar 16, 2009 at 1:20 PM, todd  wrote:
>
> Having the camera app create thumbs when a photo is taken is great,
> but another common scenario has been left unanswered. What happens
> when the user inserts (or copies) images to the SD card?

I believe that the camera app or the picture galery will generate the
thumbnails outside of the file, if they are not already present.

>
> I've found that unless the Pictures app is run, no thumbs have been
> generated for the images on the SD card and I have to add the thumbs
> myself in order to display thumbnail images.

Hm, it might make sense to add this to the SD card scanner: having us
generate thumbnails automatically on scanned content.  FIle a feature
req? :)

>
> Additionally, the gallery/camera apps only create the mini version of
> the thumbnail and not the micro version. It would be great to have a
> clear, consistent policy for thumbnail generation of images that
> reside on the SD card. I can foresee apps battling over thumb
> creation, some doing it well, others not so well and using different
> (custom?) sizes for both sizes.
>
> That's my two cents.

I agree with you.   We do need a more consistent approach for this.
I'll file a bug to track this internally.

>
> Todd
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2009-03-16 Thread todd

Having the camera app create thumbs when a photo is taken is great,
but another common scenario has been left unanswered. What happens
when the user inserts (or copies) images to the SD card?

I've found that unless the Pictures app is run, no thumbs have been
generated for the images on the SD card and I have to add the thumbs
myself in order to display thumbnail images.

Additionally, the gallery/camera apps only create the mini version of
the thumbnail and not the micro version. It would be great to have a
clear, consistent policy for thumbnail generation of images that
reside on the SD card. I can foresee apps battling over thumb
creation, some doing it well, others not so well and using different
(custom?) sizes for both sizes.

That's my two cents.

Todd
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2009-03-16 Thread Iliyan Malchev

On Sat, Mar 14, 2009 at 4:37 AM, Gaurav  wrote:
>
> I will like some clarifications around thumbnails:
>
> 1. Whose responsibility is it to generate thumbnails - the android OS
> or the application developer?
>

Pre-cupcake, android (specifically, the camera framework which runs in
the mediaserver) generates the thumbnails for you.  In cupcake, the
responsibility is going to be split between the camera application and
the framework.  The reason for the split is that certain JPEG images
may have thumbnails that exceed the 64k limitation, and will be
generated without the thumbnail.  The thumbnail, in this case, will be
generated out of line by the camera app itself.

> 2. If it is that of android OS - Can you please explain when the
> thumbnail generation happens and whether it is possible to have images
> on my SD card that don't have thumbnails generated for them.
>

Thumbnails are generated when you request a snapshot, by the DSP.
You may turn this off by setting any of the following parameters to
zero:

thumbnail-width
thumbnail-height
thumbnail-quality

> 3. It seems there are thumbnails of two kinds - micro and mini - most
> probably this distinction is based on the size of the thumbnail. Which
> one of these is generated? Are both always generated?

Unless you override the thumbnail settings, the default is width of
512, height of 384, and quality of 90.  I do not suggest you alter
these parameters, however, other than turning thumbnails off.

>
> 4. I am using a gallery to display all thumbnails.
> managedQuery( MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,
> null, null, null, null);
> Will I end up showing duplicates? - As of now I find this doesn't
> result in duplicates appearing in my Gallery.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Thumbnails

2008-12-12 Thread fala70

I seen that it can get the contents thumbnails photos, but is not
clear how link a thumb photo with the original photo. Somebody know
that ?

Stefano

On 12 Dic, 22:48, fala70  wrote:
> Somebody know how use android.provider.MediaStore.Images.Thumbnails ?
>
> I want to make a grid photo using thumbnails created automatically
> with camera app.
>
> Stefano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---