DATA_viaJPG for multiple files

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

DATA_viaJPG for multiple files

Post by Dutchman »

The functions for transfer of data via JPG-files from viewtopic.php?f=20&t=1888 have been extended with find and select functions in order to simplify handling of multiple files.
Programs and function libs are collected in the folder DATA_viaJPG.
The folder DATA_viaJPG can be downloaded from https://www.dropbox.com/sh/vkzgbjq4johu ... jfusa?dl=0
The find and select functions originate from viewtopic.php?f=20&t=1530 with a specific function for the buttons.
After selection of multiple files the button "Done" will start the process.
The process is logged to the screen and to the file "processed.info'.

20180723
• Some small errors and imperfections have been repaired. The DropBox folder "DATA_viaJPG" (https://bit.ly/2uK3blF) has been updated.
• In addition, a variant has been created in which the data is stored within the image description in COM (comment) segment(s). It can be found on Dropbox in the folder "DATA_viaJPGcom" (https://bit.ly/2uLwSTi)
screenshots.PNG
screenshots.PNG (633.54 KiB) Viewed 4865 times
Last edited by Dutchman on Fri Jan 20, 2023 12:09 pm, edited 6 times in total.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: DATA_viaJPG for multiple files

Post by rbytes »

The 'Find and process.sb' program is quitting with 'path/file not found' errors during processing. I installed the DATA_viaJPG folder in my folder "Selected Utilities", located at the the root of my Smart Basic drive. I first tried processing the Example.sb file in the DATA_viaJPG folder. On the second try, I used your back arrow key to move up to the Selected Utilities folder and selected some files from it. In both cases I got the error. Attached are the screenshots.

There is no DATA_JPG folder inside the DATA_viaJPG folder, although I can see in the error messages that the program is trying to read data jpgs from it. Apparently the program should have created it and saved the data jpgs there, but it didn't.
Attachments
IMG_2613.PNG
IMG_2613.PNG (3.31 MiB) Viewed 4853 times
IMG_2614.PNG
IMG_2614.PNG (3.31 MiB) Viewed 4853 times
Last edited by rbytes on Mon Aug 14, 2017 3:24 am, edited 3 times in total.
The only thing that gets me down is gravity...

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: DATA_viaJPG for multiple files

Post by rbytes »

I just tried moving the DATA_viaJPG folder to the Smart Basic root drive. I still get the same errors. Maybe there is some component missing?
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: DATA_viaJPG for multiple files

Post by Dutchman »

The error-message "Error reading file …" should have been "Error writing file …"
Folders are not automatically created. So files are not written if the location doesn't exist.
So the folders DATA_JPG and DATA_Extract should be present.
I added them to the DropBox-folder.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: DATA_viaJPG for multiple files

Post by rbytes »

It is all working very well now. Thanks, Ton.
The only thing that gets me down is gravity...

User avatar
GeorgeMcGinn
Posts: 435
Joined: Sat Sep 10, 2016 6:37 am
My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10
Location: Venice, FL
Flag: United States of America
Contact:

Re: DATA_viaJPG for multiple files

Post by GeorgeMcGinn »

Hi, the link gets a message that says it no longer exists.

Can you provide another one?
Dutchman wrote:
Sun Aug 13, 2017 2:51 pm
The functions for transfer of data via JPG-files from viewtopic.php?f=20&t=1888 have been extended with find and select functions in order to simplify handling of multiple files.
Programs and function libs are collected in the folder DATA_viaJPG.
The folder DATA_viaJPG can be downloaded from https://www.dropbox.com/sh/b5e4vk9eo8mh ... LgjUa?dl=0
The find and select functions originate from viewtopic.php?f=20&t=1530 with a specific function for the buttons.
After selection of multiple files the button "Done" will start the process.
The process is logged to the screen and to the file "processed.info'.


screenshots.PNG
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: DATA_viaJPG for multiple files

Post by Dutchman »

GeorgeMcGinn wrote:
Tue Aug 15, 2017 8:30 am
Hi, the link gets a message that says it no longer exists.
Can you provide another one?
I don't understand how that happened. The link is active again.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: DATA_viaJPG for multiple files

Post by rbytes »

As always, your code is very elegant. In particular, the routine you use for creating the buttons is very efficient, and I would like to adapt it for my next project. :idea:
The only thing that gets me down is gravity...

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: DATA_viaJPG for multiple files

Post by Dutchman »

rbytes wrote:
Tue Aug 15, 2017 2:29 pm
As always, your code is very elegant. In particular, the routine you use for creating the buttons is very efficient, and I would like to adapt it for my next project. :idea:
I will be very honored to find it in your program :D

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: DATA_viaJPG for multiple files

Post by rbytes »

I decided to see if I could use your MakeInstall and DATA_viaJPG programs together to transfer GigBook entries between my iPad and my iPhone X. The idea works when I test the process on my iPad.

First I run MakeInstall and generate the three files needed to store and regenerate the folder "gigbook-data".
Now I run DATA_viaJPG and select those three files. It creates 3 JPGs containing the data for those files and stores them in folder "DATA_JPG"

I run DATA_viaJPG again, navigate to "DATA_JPG" and select the three JPGs one-by-one. it extracts and saves the three original MakeInstall files to the folder DATA_Extract.

Finally I enter the folder and run "Install-gigbook-data.sb"
My "gigbook-data" folder appears.

So far so good.
Now to transfer the JPGs to my iPhone X. I made this short program (located in the DATA_JPG folder) to export them to the Camera Roll:

Code: Select all

ALBUM EXPORT "DATA_Install-gigbook-data.sb.JPG"
ALBUM EXPORT "DATA_gigbook-data.archive.JPG"
ALBUM EXPORT "DATA_gigbook-data.contents.JPG"
 
And this program to run on my iPhone to import them into DATA_JPG:

Code: Select all

ALBUM IMPORT "DATA_Install-gigbook-data.sb.JPG"
ALBUM IMPORT "DATA_gigbook-data.archive.JPG"
ALBUM IMPORT "DATA_gigbook-data.contents.JPG"
When I run it, I have to manually select the photos, but since they are identified with text I have no problem selecting them in the right order.

And here is where things go sideways.

When I run DATA_viaJPG and select those three JPGs, somehow they have lost their data! The attached image shows the error messages.
Attachments
3CF89005-482E-4416-84E4-E3A0598119B4.jpeg
3CF89005-482E-4416-84E4-E3A0598119B4.jpeg (467.81 KiB) Viewed 4536 times
The only thing that gets me down is gravity...

Post Reply