Re: WEBP Image Format
If you want to build a decoder for it, here's a javascript demo you can convert. Scripts included. https://webmproject.github.io/libwebp-demo/webp_js/index.html you could even use the JS within an LC browser to do the conversion! just make it into your own library then :) Sean Cole *Pi Digital* On Wed, 15 Jan 2020 at 22:37, Ralph DiMola via use-livecode < use-livecode@lists.runrev.com> wrote: > 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 > rdim...@evergreeninfo.net > > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: WEBP Image Format
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 rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@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 > 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 >> 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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: WEBP Image Format
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 rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@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 > 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 >> 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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
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 > 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 >> 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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: WEBP Image Format
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 > 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: WEBP Image Format
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 Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Rick Harrison via use-livecode Sent: Wednesday, January 15, 2020 1:11 PM To: How to use LiveCode Cc: Rick Harrison Subject: Re: WEBP Image Format Hi Ralph, Webp format is a google image format. Can you convert the image to standard .png before using it or is this something google is forcing you to use? Rick > On Jan 15, 2020, at 11:44 AM, Ralph DiMola via use-livecode wrote: > > I have this link although its url is a .png apparently it's in webp format. > This has broken my app. > > https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0007_ > fog.pn > g > > How do I display this in LC? No shells please as this is a mobile app. > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > ___ > use-livecode mailing list > use-livecode@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: WEBP Image Format
Hi Ralph, Webp format is a google image format. Can you convert the image to standard .png before using it or is this something google is forcing you to use? Rick > On Jan 15, 2020, at 11:44 AM, Ralph DiMola via use-livecode > wrote: > > I have this link although its url is a .png apparently it's in webp format. > This has broken my app. > > https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0007_fog.pn > g > > How do I display this in LC? No shells please as this is a mobile app. > > Thanks > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > > ___ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
WEBP Image Format
I have this link although its url is a .png apparently it's in webp format. This has broken my app. https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0007_fog.pn g How do I display this in LC? No shells please as this is a mobile app. Thanks Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode