Page 1 of 1

Imagedata convert to text

Posted: Sat May 30, 2020 3:57 pm
by EddieLee
Hi All,

Currently im using the imagedata of an image to store and display the image, however i realised that the image is pixelised and it causes some blurriness. If i use the text of the image, it takes a long processing time to display and upload to my DB. Is there anyway i can upload to my DB a clearer image using imagedata or should i reduce the text of the image?
Any help would be appreciated!

Thanks !

Re: Imagedata convert to text

Posted: Sat May 30, 2020 4:39 pm
by Thierry
EddieLee wrote:
Sat May 30, 2020 3:57 pm
Hi All,

Currently im using the imagedata of an image to store and display the image, however i realised that the image is pixelised and it causes some blurriness. If i use the text of the image, it takes a long processing time to display and upload to my DB. Is there anyway i can upload to my DB a clearer image using imagedata or should i reduce the text of the image?
Any help would be appreciated!

Thanks !
Hi Eddie,

An imageData is bound to the width and height of the image object.

If you set it to anther image, you need to know the previous width and height
and set them accordingly to the new image object.

And yes, this way it is much faster than the text of an image
as the engine has to calculate the imageData from the text...

HTH,

Thierry

Re: Imagedata convert to text

Posted: Sat May 30, 2020 4:53 pm
by EddieLee
Thierry wrote:
Sat May 30, 2020 4:39 pm
EddieLee wrote:
Sat May 30, 2020 3:57 pm
Hi All,

Currently im using the imagedata of an image to store and display the image, however i realised that the image is pixelised and it causes some blurriness. If i use the text of the image, it takes a long processing time to display and upload to my DB. Is there anyway i can upload to my DB a clearer image using imagedata or should i reduce the text of the image?
Any help would be appreciated!

Thanks !
Hi Eddie,

An imageData is bound to the width and height of the image object.

If you set it to anther image, you need to know the previous width and height
and set them accordingly to the new image object.

And yes, this way it is much faster than the text of an image
as the engine has to calculate the imageData from the text...

HTH,

Thierry
Hi Thierry,

I understand, however the images displayed by imagedata are quite blurry as its pixelised, is there any way to solve this issue ?

Re: Imagedata convert to text

Posted: Sat May 30, 2020 5:02 pm
by Thierry
I understand, however the images displayed by imagedata are quite blurry as its pixelised,
is there any way to solve this issue ?
Sorry, can't help you much here,
except showing you a LC plugin which works only with imageData:

https://vimeo.com/thierrydouez

Good luck,

Thierry

Re: Imagedata convert to text

Posted: Sat May 30, 2020 6:51 pm
by EddieLee
Hi Henry,

The images that works with sunnymage is in the imagedata format? It certainly doesn’t look like it!

Thanks!

Re: Imagedata convert to text

Posted: Sat May 30, 2020 8:24 pm
by Thierry
EddieLee wrote:
Sat May 30, 2020 6:51 pm
The images that works with sunnymage is in the imagedata format?
Well, if you say so :roll:

sunnYmage is a Livecode IDE plugin plus
a Lua external which does raw transformation on images...

The external accepts only raw datas, thus imageData.

Be well,

Thierry