Storing thumbnails of uploaded JPEG images
Posted: Wed Nov 28, 2018 11:36 am
Hello,
I am writing an application to browse through a music collection. Each album has a JPEG image file which I would like to store as a "thumb nail" (reduced size) in an SQLite database.
In order to convert the image to a smaller size, I have created two invisible images in my stack, with fixed positions:
- the filename of the first image is set to the filename of the file
- If I then try to get the text of the image, it is always returned empty
- so I copied the imagedata of the first image to the second one, and then get the text of the second image
set the filename of image tPath
get the imagedata of image "image1"
set the imagedata of image "image2" to it
put the text of image "image2" into tImage
Seems like there could be a simpler way of doing this, without having to copy the "imagedata" from one image to another. Any suggestions ?
I am writing an application to browse through a music collection. Each album has a JPEG image file which I would like to store as a "thumb nail" (reduced size) in an SQLite database.
In order to convert the image to a smaller size, I have created two invisible images in my stack, with fixed positions:
- the filename of the first image is set to the filename of the file
- If I then try to get the text of the image, it is always returned empty
- so I copied the imagedata of the first image to the second one, and then get the text of the second image
set the filename of image tPath
get the imagedata of image "image1"
set the imagedata of image "image2" to it
put the text of image "image2" into tImage
Seems like there could be a simpler way of doing this, without having to copy the "imagedata" from one image to another. Any suggestions ?