Imagedata convert to text
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Imagedata convert to text
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 !
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 

Re: Imagedata convert to text
Hi Eddie,EddieLee wrote: ↑Sat May 30, 2020 3:57 pmHi 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 !
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.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: Imagedata convert to text
Hi Thierry,Thierry wrote: ↑Sat May 30, 2020 4:39 pmHi Eddie,EddieLee wrote: ↑Sat May 30, 2020 3:57 pmHi 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 !
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
I understand, however the images displayed by imagedata are quite blurry as its pixelised, is there any way to solve this issue ?
Eddie 

Re: Imagedata convert to text
Sorry, can't help you much here,I understand, however the images displayed by imagedata are quite blurry as its pixelised,
is there any way to solve this issue ?
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.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: Imagedata convert to text
Hi Henry,
The images that works with sunnymage is in the imagedata format? It certainly doesn’t look like it!
Thanks!
The images that works with sunnymage is in the imagedata format? It certainly doesn’t look like it!
Thanks!
Eddie 

Re: Imagedata convert to text
Well, if you say so

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