Re: Dynamic views disregard images for odd reasons

Daniel Jalkut <[email protected]> Thu, 8 Feb 2018 13:52:03 -0800 (PST)
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Thanks for posting this! I'm sorry I didn't see it, somehow, until now. 
I'll have to try this and see if the images, specified in this way, are 
respected by Blogger for dynamic views.

Do you know if all these size specification formats in the URL are 
documented anywhere? By Googling I also discovered "s0" to use the default 
size, which may be best for my needs.

Daniel

On Tuesday, January 10, 2017 at 4:42:58 PM UTC-5, dind wrote:
>
> Hi Daniel
>
> You ca do this without using imgmax.
>
> alter your url to be
>
>
> https://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/
> *s800*/photo.JPG
>
>
> https://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/s800/
>  
>
>
> https://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/w800/
>
>
> https://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/h800/
>
> s800 = make the longest dimension 800
> h800 = make height 800
> w800 = make the width 800
>
>
> On Tuesday, 10 January 2017 00:48:22 UTC, caryn canfield wrote:
>>
>> Dear Blogger Developers,  This is definitely causing problems for people. 
>>  If you could resolve the issue it would be greatly appreciated.  Thanks 
>> Caryn
>>
>> On Thursday, December 31, 2015 at 6:42:43 PM UTC-7, Daniel Jalkut wrote:
>>>
>>> Forgive me, this is only tangentially related to the Blogger API per se, 
>>> but because it relates to default behaviors of the Picasa API and how it's 
>>> used in conjunction with Blogger's API, I thought I'd ask here to see if 
>>> anybody has thoughts.
>>>
>>> I've noticed thanks to user feedback that some posts edited with my app, 
>>> MarsEdit for the Mac, have their image contents ignored by Blogger's 
>>> "Dynamic Views". For example, an image that appears regularly in the 
>>> classic post view will not show up at all in Snapshot dynamic view.
>>>
>>> The distinction seems to be based on whether the image in the post is 
>>> referenced by HTTPS vs. HTTP, and whether the image makes use of an 
>>> "imgmax" paramater:
>>>
>>> 1. Images linked with HTTP always seem to work.
>>> 2. Images linked with HTTPS work as long as there is no ?imgmax 
>>> parameter.
>>> 3. Images linked with HTTPS and have an ?imgmax parameter simply don't 
>>> show up.
>>>
>>> For example, a new post created with this URL:
>>>
>>>
>>> https://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/photo.JPG?imgmax=800
>>>
>>> Will not be picked up by Google's dynamic views, but tweaking it to 
>>> either:
>>>
>>>
>>> http://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/photo.JPG?imgmax=800
>>>
>>> or 
>>>
>>>
>>> https://lh3.googleusercontent.com/-L8QFnIPllF0/VoQtwNwQDHI/AAAAAAAABFU/Q5lkwnEwHj8/photo.JPG
>>>
>>> Causes it to be picked up.
>>>
>>> The way this relates to the Blogger API is that as far as I know using 
>>> Picasa is still the only officially supported way to add images to Blogger 
>>> posts, and the image URLs come back by default with HTTPS scheme. In 
>>> general, I assume that Google and Blogger promote using HTTPS whenever 
>>> possible. So it's weird that the Dynamic Views for whatever reason 
>>> discriminate on this basis.
>>>
>>> The imgmax stuff is a little fuzzier in my memory. Perhaps that is 
>>> something that I should stop supplying with images, but I seems to recall 
>>> it was necessary at some point in history.
>>>
>>> If anybody has advice about this or is willing to pass it along to 
>>> appropriate developers on the Blogger backend, I'll appreciate that!
>>>
>>> Daniel
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.