WEBP Image Format

Ralph DiMola rdimola at evergreeninfo.net
Wed Jan 15 19:24:34 EST 2020


Update 2: dwebp command line utility via my new web service API works like a charm. I now can put the webp image into a image control.
LC server rocks for banging out these type of things.

Thanks again for the info that made this happen!

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Martin Koob via use-livecode
Sent: Wednesday, January 15, 2020 4:59 PM
To: How to use LiveCode
Cc: Martin Koob
Subject: Re: WEBP Image Format

Hi

Not sure if this would work but in the following article

https://www.howtogeek.com/325864/how-to-save-googles-webp-images-as-jpeg-or-png/

 it says there are command line utilities to convert WebP images to PNG and other formats

 'Google offers up the utilities to encode, decode, and view WebP on Linux, Windows, and Mac OS X.’

C:\Path\To\dwebp.exe inputFile.webp -o outputFile


I think you could use LiveCode’s shell() function to run this to convert any of the WebP images you are supplied to get PNG versions to server to your customers.


Regards,

Martin Koob





> On Jan 15, 2020, at 4:48 PM, Rick Harrison via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Ralph,
> 
> Sounds like you are stuck with it.
> 
> I think you will have to play around with the browser widget or figure 
> out how to take a screen shot of just the image so you can use it.
> 
> It’s a headache and a PITA!
> 
> Good luck!
> 
> Rick
> 
>> On Jan 15, 2020, at 1:49 PM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hey Rick,
>> 
>> Yes, I have no choice. This in one of many weather icon URLs that our 
>> weather provider delivers via their API. I don't know what the image 
>> is until it's downloaded and displayed. All of the images to date 
>> were/are PNGs. This one seems to be an outlier but I'm worried that 
>> more of these may come my way. I Can't open it up in any app(Windows) 
>> except for Chrome. I display these icons in the app using 24 of these 
>> images(one per hour) in a scrolling group.
>> The browser widget opens the URL and displays the image. If I knew 
>> the size I guess I could do some convoluted procedure to 
>> resize/export the image from the browser widget to an image to display in a resizable image control.
>> If the browser widget can open it then the open source library for 
>> webp must be available (conversion widget?).
>> 
>> Headache....
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list