EXIF stripping

jcs

Tinkerer
Oct 30, 2021
29
64
13
Chicago
jcs.org
I just uploaded a bunch of photos that were taken with my phone and then realized that this forum software doesn't strip out any EXIF data, so all of the GPS info was still stored in them. I manually stripped out the EXIF data and re-uploaded, but I think this is something the forum should do itself.
 

eric

Administrator
Staff member
Sep 2, 2021
824
1,318
93
MN
scsi.blue
image.jpg


Testing taken (and posted) directly from my phone
 

eric

Administrator
Staff member
Sep 2, 2021
824
1,318
93
MN
scsi.blue
It seems to strip GPS. I think when doing an ajax upload it shows the uploder the original, but that original is not served to other users. It is odd I agree, but we did test this before go live as well.


Code:
$ exiftool image.jpg
ExifTool Version Number         : 12.30
File Name                       : image.jpg
Directory                       : .
File Size                       : 1826 KiB
File Modification Date/Time     : 2022:01:27 22:03:07-06:00
File Access Date/Time           : 2022:01:27 22:03:23-06:00
File Inode Change Date/Time     : 2022:01:27 22:03:07-06:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                 : None
X Resolution                    : 72
Y Resolution                    : 72
Profile CMM Type                : Apple Computer Inc.
Profile Version                 : 4.0.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2017:07:07 13:22:32
Profile File Signature          : acsp
Primary Platform                : Apple Computer Inc.
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Apple Computer Inc.
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Apple Computer Inc.
Profile ID                      : ca1a9582257f104d389913d5d1ea1582
Profile Description             : Display P3
Profile Copyright               : Copyright Apple Inc., 2017
Media White Point               : 0.95045 1 1.08905
Red Matrix Column               : 0.51512 0.2412 -0.00105
Green Matrix Column             : 0.29198 0.69225 0.04189
Blue Matrix Column              : 0.1571 0.06657 0.78407
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option to extract)
Chromatic Adaptation            : 1.04788 0.02292 -0.0502 0.02959 0.99048 -0.01706 -0.00923 0.01508 0.75168
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option to extract)
Image Width                     : 3024
Image Height                    : 4032
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 3024x4032
Megapixels                      : 12.2
 

eric

Administrator
Staff member
Sep 2, 2021
824
1,318
93
MN
scsi.blue
I airdroped the same image to my computer and I do see it did have GPS, but again the forum version does not:

Code:
GPS Altitude                    : xxx m Above Sea Level
GPS Latitude                    : xxx
GPS Longitude                   : xxx
 

eric

Administrator
Staff member
Sep 2, 2021
824
1,318
93
MN
scsi.blue
There's the difference - I believe "Attachments" are raw files and they are not touched or resized while I used the "Insert Image".

I don't think that's a great behavior though for XenForo... We'll dig into it.
 

jcs

Tinkerer
Oct 30, 2021
29
64
13
Chicago
jcs.org
I would question whether that "Insert Image" is even useful, as the image in your post is huge and has to be clicked on to zoom out of, where as attachments are given thumbnails and it's easier to upload multiple images at a time.

Thanks for looking into it.
 

eric

Administrator
Staff member
Sep 2, 2021
824
1,318
93
MN
scsi.blue
I would question whether that "Insert Image" is even useful
I've actually only ever used that option :D I usually am talking about or describing something and using an image to help so I insert it by the text of what I'm talking about. (but i do see your point on different uses - i was only describing why I didnt notice this before on attachments)
 
Last edited:
  • Like
Reactions: Alf Torp