oBrowser and TIFF

Rob Mostyn mostyn at platformis.net
Wed Aug 11 17:11:54 UTC 2021


As of today I am an ImageMagic user!  Cool tool!

Rob Mostyn
mostyn at platformis.net

+44 (0)20 3233 0044

As Carl Sagan once said:
One of the great commandments of science is, "Mistrust arguments from authority." ... Too many such arguments have proved too painfully wrong. Authorities must prove their contentions like everybody else.

> On 10 Aug 2021, at 17:20, Mike Matthews - Omnis <omnis at lineal.co.uk> wrote:
> 
> Very good it is too.
> 
> It is now a Universal xComp as well, for M1 processors. :)
> 
> Mike
> 
> 
> 
> On 10 Aug 2021, at 15:54, Scotte Meredith <spomacguy at gmail.com<mailto:spomacguy at gmail.com>> wrote:
> 
> Kelly has an ImageMagicker xComp.
> 
> 
> On Aug 10, 2021, at 1:59 AM, Rob Mostyn <mostyn at platformis.net<mailto:mostyn at platformis.net>> wrote:
> 
> Thanks Phil and Doug and Kelly (offline),
> TIFF has been around such a long time I just expected it to be standard but its not!
> So conversion it is then.  ImageMagick here we come!
> 
> Rob Mostyn
> mostyn at platformis.net<mailto:mostyn at platformis.net>
> 
> As Carl Sagan once said:
> One of the great commandments of science is, "Mistrust arguments from authority." ... Too many such arguments have proved too painfully wrong. Authorities must prove their contentions like everybody else.
> 
> On 9 Aug 2021, at 17:40, Doug Easterbrook <doug at artsman.com> wrote:
> 
> hi rob.
> 
> I’m with phil - you may need to convert them.  typical browsers support formats likr png, jpeg, svg
> 
> I’ve never really thought of TIFF as a standard browser supported format and from a few searches on the internet, I find that safari might be the only browser that supports this format natively.
> 
> if I want to find out what ’stuff’ each browser supports, I find this web site useful (https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fcaniuse.com&c=E,1,36tue-Otmb63UcojxXwfFSo-91NzncTzcqmCHHcwudy1VDLar-LErPTLfPs6XCqJgTRu1UimRYM8bAl_Jkb9bmDoeci9OMRCNYDuhPAePSt6YdpbOj6z&typo=1 <https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fcaniuse.com%2f&c=E,1,MC-YtRzaW-GpZLXYwZS0xDOZvONLelnwQDajVxoeXvZdhCXKOa9yTmZN1qcLFaygB45x73gBbFiyhOCbw1EagF3RtuMflEvdCsa27KAqg5Ri10QS&typo=1>).    I preloaded it with an example like can I use SVG.  https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fcaniuse.com%2f%3fsearch%3dsvg&c=E,1,yjiTaEXQgAZulnahC6nfD-Ahssg7BP-qCeCQE3quz0nL-fPJb3Cfo5r8luPrG8cP_g46bCAN99ybEKq9LO2iUQ8OpOjy_dUhYAWP7vwqZnXaTkyGXfWHCw,,&typo=1
> 
> 
> this web site suggested only safari supports tiff
> 
> https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
> https://en.wikipedia.org/wiki/Comparison_of_browser_engines_(graphics_support) <https://en.wikipedia.org/wiki/Comparison_of_browser_engines_(graphics_support)>. (don’t know how old this is, but tiff generally=no)
> 
> other searches indicate you may need a plug in added to chrome.
> 
> 
> 
> and so..  for chomium embedded — if you can load a plug in, you might get away with showing tiff.   but I don’t know if thats a capability
> 
> 
> 
> like phil says — go with the key image formats that browsers support and convert the other stuff to something known.
> 
> 
> 
> 
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug at artsman.com
> https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.artsman.com&c=E,1,6jPMtzfSNoi7NnQvZUsCtHxcUx0g3jmyTZnadOLEWCpbQ-xqc7-bWU1DuBJE5szx3yvhtJ_oOwdF1u_xXUBDYDBpfK-IGmxhOypy-C4b9S0,&typo=1
> Phone (403) 650-1978
> 
> On August 9, 2021, at 2:17 AM, Rob Mostyn <mostyn at platformis.net> wrote:
> 
> Hi $folks,
> 
> I am using oBrowser to display images and pdfs that a user can upload so I have to accommodate any standard image type.
> They wind up in a fat client window and I want to see the images, hence oBrowser.
> PDF, GIF, JPG, BMP, PNG and SVG are displaying ok.  Actually the SVG reports an error and displays the image as expected.  Not ideal but tolerable.
> The problem I am having is with TIFFs.  oBrowser is not displaying them.
> 
> JOURNEY OF DISCOVERY
> I take the binary from the db and write it to a temp file with appropriate suffix on disk.  I also create another temp html file with the contents:
> <html>
> <head></head>
> <body><img src="file://[con(lrTempImageFileInfo.fullname)]"></body>
> </html>
> 
> The temp html worked ok at first but didn’t display a pdf so I got oBrowser to point to the pdf directly and it works a treat.
> So I tried getting oBrowser to address the various image types directly (instead of being displayed via the temporary html) and that also worked!
> Cool…  except the TIFF.  That doesn’t display either way.
> 
> What trick am I missing?
> 
> Rob Mostyn
> mostyn at platformis.net
> 
> +44 (0)20 3233 0044
> 
> As Carl Sagan once said:
> One of the great commandments of science is, "Mistrust arguments from authority." ... Too many such arguments have proved too painfully wrong. Authorities must prove their contentions like everybody else.
> 
> _____________________________________________________________
> Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,2H6g7Gs0vl513a5ipsrZUrBU2KzOYag5St2rVAB5BJWuLGg_FwNSU_eV3k5bGeO5boX6jzNAkcFiFm8IDf5ECkweBYkWYqNPpKlRnHqj3dWF1uwHWo3c&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,LyF9eXlIxQG8m473lIiivf8cKVIce_vFKr6jecJUgT9YxBsSX7QeAtWtHh2hX79GF6BShbSQkNipI9k1pVet1ryY-wVS7aBUmOOhMFpZNIS-oUN7tP7wzuY,&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,x0gEvZkgHXTKwphiSvz4w9x5iEewO9Xd001izUWSXhVqztEDDHrfpXUKlY5XxB5gkdChNqSfrJ4KRVHpHB2UZOyBaLOxFmNwRE8YthAa74EL33Ztaaf-mGyTmZU,&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> 
> 
> Scotte Meredith
> spomacguy at gmail.com<mailto:spomacguy at gmail.com>
> 509/998-0991
> 
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,VTAPcqgXokNR0fjag61rn5uK5-yLIkDZf8LAbO54QoR0NBDoS-Sf3qoky9NcLKHvXzXEYJjUyukpkToOPve3jVgB2Fz0jrfpkm-Htm-QsevS_fvRRg,,&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list