WEBP Image Format
Ralph DiMola
rdimola at evergreeninfo.net
Wed Jan 15 17:37:49 EST 2020
Thanks for all the suggestions! This is a mobile app so shelling is not an option. I will look at the command line utility and make a web service API on my server.
Update: I just converted a test webp file on Windows using this utility and it works. Now onto the on-rev server and Linux/web service.
I guess I should file an enhancement request so we can deal with webp format in LC after I get past the current disaster.
Continuing on with my headache...
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