B4J Question Exif - metadata, i.e. information hidden in the photo

T201016

Active Member
Licensed User
Longtime User
Hello everyone,
I direct this inquiry to all familiar in the subject :)

Here is a scenario:
If the photo in "Sourcefile.jpg" is modified and unchanged metadata, I will see in them the miniature of the original frame.
There are a number of popular metadata removal programs, such as "exiftool.exe" or "jhead.exe".

As a result, all metadata, including a miniature of the image, will be removed from the file "sourcefile.jpg":

A. :
exiftool -all= -overwrite_original SourceFile.jpg
B. :
jhead -mkexif SourceFile.jpg

Interests me,
Is there a program (or source code B4J),
which would allow me to check whether the surgery on the miniature was successful.
Maybe by re-displaying JPG and preview of its miniature? Just how to do it?

Regards
 
Solution
The solution came unexpectedly
?

in B4A

T201016

Active Member
Licensed User
Longtime User
Hi @TILogistic
I think I found a solution for me. Although it seems that I have a problem with the Android version. For now I am in tests

https://www.b4x.com/android/forum/threads/add-thumbnail-with-writetostream-method.79636/#post-504399

In my working project I wanted to show two views of the windows,
In the first one would be placed the contents of the photo,
And in the second window, the contents of the miniature of the original frame image downloaded with exif.

In case the exif metadata were removed from the file,
The second view of the window would of course be empty. It would give me visual confidence that the file does not contain the original frame.
We often modify our own photos by forgetting the miniatures containing the original frame.

How to separate the binary figure from exif.thumbnail image
in the B4J code?
 
Last edited:
Upvote 0

T201016

Active Member
Licensed User
Longtime User
The solution came unexpectedly
?

in B4A
 

Attachments

  • ManageExternalStorage (example).zip
    7.2 KB · Views: 51
  • 2.jpg
    2.jpg
    36.5 KB · Views: 64
  • 1.jpg
    1.jpg
    28.6 KB · Views: 67
  • JPG1.jpg
    JPG1.jpg
    50.9 KB · Views: 44
  • JPG2.jpg
    JPG2.jpg
    104.1 KB · Views: 55
Last edited:
Upvote 0
Solution
Top