Imagedata convert to text

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Imagedata convert to text

Post by EddieLee » 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 !
Eddie :D

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Imagedata convert to text

Post by Thierry » 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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Re: Imagedata convert to text

Post by EddieLee » Sat May 30, 2020 4:53 pm

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 ?
Eddie :D

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Imagedata convert to text

Post by Thierry » Sat May 30, 2020 5:02 pm

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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Re: Imagedata convert to text

Post by EddieLee » Sat May 30, 2020 6:51 pm

Hi Henry,

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

Thanks!
Eddie :D

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Imagedata convert to text

Post by Thierry » Sat May 30, 2020 8:24 pm

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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

Post Reply