This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 54 - Pages: 4 [ Previous | 1 2 3 4 | Next ] - Last Post: 8 May 26, 07:37 Last Post By: MarkusD Threads: [ Previous | Next ]
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 13:57   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
MarkusD wrote:
I'm not used to create small test projects.

Get used to it. It's the only way to test things. Launch jAlbum, add six images, give the project a name. Choose Tiger, then choose it again, so that you get the default Tiger settings, instead of whatever defaults you have saved. Enter the caption code I've provided. Make sure you enable the lifeboat file. Make the album. Upload it.

And don't use the jAlbum Sample Project. It also has too many complications in it. Not useful for actually testing things.
MarkusD

Posts: 867
Registered: 13-Apr-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 16:37   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 18:26   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
There's a parsing error in the caption. The line for GPS Altitude is mangled. It should be:
<ja:if test="<%=meta.get("Gps.GPS Altitude") != null && !meta.get("Gps.GPS Altitude").equals("") %>"> | <i>Höhe: ${gpsAltitude}</i></ja:if>
ETA: And that's not the only error. There are a bunch of #38; entities scattered throughout the code, that don't belong there.

Edited by: JeffTucker on 3 May 2026, 13:01
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 19:14   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
As if all that weren't enough, your test project has Settings > Advanced > Metadata > Sources set for jAlbum only. It also needs xmp.
MarkusD

Posts: 867
Registered: 13-Apr-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 20:02   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Attachment footer.txt (2.3 KB)
JeffTucker wrote:
As if all that weren't enough, your test project has Settings > Advanced > Metadata > Sources set for jAlbum only. It also needs xmp.
No, it doesn't. :-) The GPS-Data is stored in xmp, yes. But, they are also in Gps:
 
Directories:
JPEG (class com.drew.metadata.jpeg.JpegDirectory)
Exif IFD0 (class com.drew.metadata.exif.ExifIFD0Directory)
Exif SubIFD (class com.drew.metadata.exif.ExifSubIFDDirectory)
Canon Makernote (class com.drew.metadata.exif.makernotes.CanonMakernoteDirectory)
Interoperability (class com.drew.metadata.exif.ExifInteropDirectory)
GPS (class com.drew.metadata.exif.GpsDirectory)
Exif Thumbnail (class com.drew.metadata.exif.ExifThumbnailDirectory)
XMP (class com.drew.metadata.xmp.XmpDirectory)
Photoshop (class com.drew.metadata.photoshop.PhotoshopDirectory)
IPTC (class com.drew.metadata.iptc.IptcDirectory)
Huffman (class com.drew.metadata.jpeg.HuffmanTablesDirectory)
File Type (class com.drew.metadata.file.FileTypeDirectory)
File (class com.drew.metadata.file.FileSystemDirectory)
 
Aperture Value=f/5,0
Artist=
Body Serial Number=083032007058
Camera Owner Name=
Canon makernote.AE Setting=Normal AE
Canon makernote.AEB Bracket Value=0
Canon makernote.AF Info Array 2=[2736 values]
Canon makernote.AF Point Selected=Unknown (0)
Canon makernote.AF Points in Focus=0
Canon makernote.Ambiance Info Array=32 0 0 0 2147483647 0 1 1
Canon makernote.Aspect Information Array=7 6000 3368 0 0
Canon makernote.Auto Exposure Bracketing=0
Canon makernote.Auto ISO=0
Canon makernote.Auto Rotate=0
Canon makernote.Base ISO=160
Canon makernote.Black Level=135 135 135
Canon makernote.Bulb Duration=0
Canon makernote.Camera Info Array=[4608 values]
Canon makernote.Camera Temperature=147
Canon makernote.Camera Type=248
Canon makernote.Canon Model ID=2147484773
Canon makernote.Color Data Array 1=[3778 values]
Canon makernote.Color Info Array=44 0 0 10 4294967295 0 10 0 10 0 10
Canon makernote.Color Space=1
Canon makernote.Color Tone=0
Canon makernote.Continuous Drive Mode=Single shot
Canon makernote.Contrast=Normal
Canon makernote.Control Mode=1
Canon makernote.Crop Info=0 0 316 316
Canon makernote.Custom Functions Array 2=[189 values]
Canon makernote.Custom Picture Style File Name=
Canon makernote.Digital Zoom=No digital zoom
Canon makernote.Display Aperture=65535
Canon makernote.Dust Removal Data=[1024 values]
Canon makernote.Easy Shooting Mode=Manual
Canon makernote.Exposure Compensation=0
Canon makernote.Exposure Mode=Program
Canon makernote.Exposure Time=196
Canon makernote.F Number=148
Canon makernote.File Info Array=[83 values]
Canon makernote.Filter Info Array=[53 values]
Canon makernote.Firmware Version=Firmware Version 1.1.0
Canon makernote.Flash Activity=Flash did not fire
Canon makernote.Flash Details=Unknown (8)
Canon makernote.Flash Exposure Compensation=0
Canon makernote.Flash Guide Number=0
Canon makernote.Flash Mode=No flash fired
Canon makernote.Flash Output=0
Canon makernote.Focal Units per mm=1
Canon makernote.Focus Continuous=Single
Canon makernote.Focus Distance Lower=2727
Canon makernote.Focus Distance Upper=1463
Canon makernote.Focus Mode=Continuous
Canon makernote.Focus Type=Auto
Canon makernote.Image Size=Large
Canon makernote.Image Type=Canon EOS R10
Canon makernote.Image Unique ID=7 173 130 58 154 144 79 22 167 101 130 106 207 238 76 125
Canon makernote.Iso=Auto
Canon makernote.Lens Info Array=[30 values]
Canon makernote.Lens Model=RF-S18-150mm F3.5-6.3 IS STM
Canon makernote.Lens Type=Unknown (61182)
Canon makernote.Lighting Optimizer Array=60 0 0 0 2 0 1 0 1 1 1 0 1 4294967295 0
Canon makernote.Long Focal Length=150 1
Canon makernote.Macro Mode=Normal
Canon makernote.Manual Flash Output=Unknown (65535)
Canon makernote.Max Aperture=f/5,0
Canon makernote.Measured Color Array=12 533 1024 1024 599 0
Canon makernote.Measured EV=184
Canon makernote.Measured EV 2=208
Canon makernote.Metering Mode=Unknown (1)
Canon makernote.Min Aperture=f/30,6
Canon makernote.ND Filter=0
Canon makernote.Optical Zoom Code=46
Canon makernote.Owner Name=
Canon makernote.Photo Effect=Off
Canon makernote.Processing Information Array=[18 values]
Canon makernote.Quality=Fine
Canon makernote.Record Mode=Unknown (13)
Canon makernote.SRAW Quality=Unknown (65535)
Canon makernote.Saturation=Normal
Canon makernote.Self Timer 2=65535
Canon makernote.Self Timer Delay=Self timer not used
Canon makernote.Sensor Information Array=[17 values]
Canon makernote.Sequence Number=0
Canon makernote.Serial Info Array=EQ0147353
Canon makernote.Sharpness=Unknown (32767)
Canon makernote.Short Focal Length=18 1
Canon makernote.Slow Shutter=3
Canon makernote.Spot Metering Mode=Center
Canon makernote.Target Aperture=148
Canon makernote.Target Exposure Time=192
Canon makernote.Thumbnail Image Valid Area=0 159 15 104
Canon makernote.Unknown Camera Setting 2=0
Canon makernote.Unknown Camera Setting 3=0
Canon makernote.Unknown Camera Setting 7=32767
Canon makernote.Unknown tag (0x0003)=0 0 0 0
Canon makernote.Unknown tag (0x0019)=1
Canon makernote.Unknown tag (0x0032)=44 1 5 981642503 374313114 1786930599 2102193871 0 0 0 0
Canon makernote.Unknown tag (0x0033)=2897643110 374293091 1786930599 2102193871
Canon makernote.Unknown tag (0x0035)=16 60 19 0
Canon makernote.Unknown tag (0x0038)=[76 values]
Canon makernote.Unknown tag (0x003d)=48 1 2 0 0 0 0 0 0 0 0 1
Canon makernote.Unknown tag (0x003f)=17
Canon makernote.Unknown tag (0x4009)=0 0 0
Canon makernote.Unknown tag (0x4011)=[252 values]
Canon makernote.Unknown tag (0x4012)=
Canon makernote.Unknown tag (0x4021)=20 0 0 0 1
Canon makernote.Unknown tag (0x4025)=44 0 0 0 0 0 0 0 0 0 0
Canon makernote.Unknown tag (0x4027)=24 393218 1325400095 0 13684944 65536
Canon makernote.Unknown tag (0x4028)=[27 values]
Canon makernote.Unknown tag (0x402c)=8 0
Canon makernote.Unknown tag (0x4033)=[800 values]
Canon makernote.Unknown tag (0x4039)=7 173 130 58 154 144 79 22 167 101 130 106 207 238 76 125
Canon makernote.Unknown tag (0x403c)=12 1 4294967295
Canon makernote.Unknown tag (0x403d)=0 0 0 0 0 0 0 0 0 0 0
Canon makernote.Unknown tag (0x4049)=8 0 0 0
Canon makernote.Unknown tag (0x404b)=65535 65535
Canon makernote.Unknown tag (0x4053)=36 0 0 0 0 0 0 0 0
Canon makernote.Unknown tag (0x4056)=[195 values]
Canon makernote.Unknown tag (0x4058)=20 1182913492 1108655927 1112354774 3
Canon makernote.Unknown tag (0xc100)=112
Canon makernote.Unknown tag (0xc124)=0
Canon makernote.Unknown tag (0xc128)=65535
Canon makernote.Unknown tag (0xc12a)=0
Canon makernote.Unknown tag (0xc12b)=32767
Canon makernote.Unknown tag (0xc12c)=0
Canon makernote.Unknown tag (0xc12e)=65535
Canon makernote.Unknown tag (0xc12f)=0
Canon makernote.Unknown tag (0xc130)=4
Canon makernote.Unknown tag (0xc131)=65535
Canon makernote.Unknown tag (0xc132)=0
Canon makernote.Unknown tag (0xc133)=0
Canon makernote.Unknown tag (0xc134)=0
Canon makernote.Unknown tag (0xc135)=0
Canon makernote.Unknown tag (0xc136)=65535
Canon makernote.Unknown tag (0xc137)=65535
Canon makernote.Unknown tag (0xc200)=2
Canon makernote.Unknown tag (0xc201)=39
Canon makernote.Unknown tag (0xc202)=11121
Canon makernote.Unknown tag (0xc203)=19061
Canon makernote.Unknown tag (0xc400)=68
Canon makernote.Unknown tag (0xc40b)=8
Canon makernote.Unknown tag (0xc419)=0
Canon makernote.Unknown tag (0xc41e)=65535
Canon makernote.Unknown tag (0xc41f)=0
Canon makernote.Unknown tag (0xc420)=0
Canon makernote.VRD Offset=0
Canon makernote.Vignetting Correction Array 1=[1500 values]
Canon makernote.Vignetting Correction Array 2=40 0 1 0 1 1 1 0 1 1
Canon makernote.White Balance=0
Canon makernote.Zoom Source Width=257
Canon makernote.Zoom Target Width=0
Color Space=sRGB
Components Configuration=YCbCr
Copyright=
Custom Rendered=Normal process
Date/Time=2026:01:30 15:15:38
Date/Time Digitized=2026:01:30 15:15:38
Date/Time Original=2026:01:30 15:15:38
Exif Image Height=3368 pixels
Exif Image Width=6000 pixels
Exif Version=2.31
Exif thumbnail.Compression=JPEG (old-style)
Exif thumbnail.Resolution Unit=Inch
Exif thumbnail.Thumbnail Length=8329 bytes
Exif thumbnail.Thumbnail Offset=26332 bytes
Exif thumbnail.X Resolution=72 dots per inch
Exif thumbnail.Y Resolution=72 dots per inch
Exposure Bias Value=0 EV
Exposure Mode=Auto exposure
Exposure Program=Program normal
Exposure Time=1/60 sec
F-Number=f/5,0
File type.Detected File Type Long Name=Joint Photographic Experts Group
File type.Detected File Type Name=JPEG
File type.Detected MIME Type=image/jpeg
File type.Expected File Name Extension=jpg
File.File Modified Date=Fr. Jan. 30 22:00:00 +01:00 2026
File.File Name=IMG_1263.JPG
File.File Size=7107140 bytes
Flash=Flash did not fire
FlashPix Version=1.00
Focal Length=39 mm
Focal Plane Resolution Unit=Inches
Focal Plane X Resolution=293/2000000 inches
Focal Plane Y Resolution=293/2000000 inches
Gps.GPS Altitude=10 metres
Gps.GPS Altitude Ref=Sea level
Gps.GPS Date Stamp=2026:01:30
Gps.GPS Latitude=54° 30' 18,86"
Gps.GPS Latitude Ref=N
Gps.GPS Longitude=11° 13' 46,15"
Gps.GPS Longitude Ref=E
Gps.GPS Map Datum=WGS-84
Gps.GPS Time-Stamp=14:15:38,000 UTC
Gps.GPS Version ID=2.200
Huffman.Number of Tables=4 Huffman tables
ISO Speed Ratings=100
Interoperability.Interoperability Index=R98
Interoperability.Interoperability Version=1.00
Iptc.Application Record Version=4
Iptc.City=Fehmarn
Iptc.Country/Primary Location Code=DEU
Iptc.Country/Primary Location Name=Deutschland
Iptc.Province/State=Schleswig-Holstein
Iptc.Sub-location=Puttgarden
Jpeg.Component 1=Y component: Quantization table 0, Sampling factors 2 horiz/1 vert
Jpeg.Component 2=Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert
Jpeg.Component 3=Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert
Jpeg.Compression Type=Baseline
Jpeg.Data Precision=8 bits
Jpeg.Image Height=3368 pixels
Jpeg.Image Width=6000 pixels
Jpeg.Number of Components=3
Lens Model=RF-S18-150mm F3.5-6.3 IS STM
Lens Serial Number=2302004362
Lens Specification=18-150mm
Make=Canon
Metering Mode=Spot
Model=Canon EOS R10
Orientation=Top, left side (Horizontal / normal)
Recommended Exposure Index=100
Resolution Unit=Inch
Scene Capture Type=Standard
Sensitivity Type=Recommended Exposure Index
Shutter Speed Value=1/63 sec
Sub-Sec Time=61
Sub-Sec Time Digitized=61
Sub-Sec Time Original=61
Time Zone=+01:00
Time Zone Digitized=+01:00
Time Zone Original=+01:00
User Comment=
White Balance Mode=Auto white balance
X Resolution=72 dots per inch
Xmp.XMP Value Count=13
Y Resolution=72 dots per inch
YCbCr Positioning=Datum point
xmp.Iptc4xmpCore:CountryCode=DEU
xmp.Iptc4xmpCore:Location=Puttgarden
xmp.exif:DateTimeOriginal=2026-01-30T15:15:38+01:00
xmp.exif:GPSAltitude=10/1
xmp.exif:GPSAltitudeRef=0
xmp.exif:GPSLatitude=54,30.314340N
xmp.exif:GPSLongitude=11,13.769148E
xmp.exif:GPSMapDatum=WGS-84
xmp.exif:GPSTimeStamp=2026-01-30T14:15:38Z
xmp.exif:GPSVersionID=2.2.0.0
xmp.photoshop:City=Fehmarn
xmp.photoshop:Country=Deutschland
xmp.photoshop:State=Schleswig-Holstein


I never had the option Settings > Advanced > Metadata > Sources checked, never! Because that would kind of polute other meta data into my projects.

I found out how to make your new code work. I attached it as a file.

What help me is to compare your code and my code with the compare plugin from Notepad++

Result:
https://www.markus-drueck.de/public/2027%2001%2029%20Norge/2027%2001%2029%20Norge/2027%2001%2029%20Hahnst%C3%A4tten%20-%20Helsing%C3%B8r/index.html#img=IMG_1263.avif

I think now we solved the issue. Thanks a lot!
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 20:18   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
I think I would also ditch the FontAwesome stuff for the map markers - too complicated by half. Then you can use more conventional tooltip coding, and get rid of the strange <abbr> tags - both Laza and I were initially stumped by them - that's just how unusual they are! In the latest incarnation of my demo album, the coding for each of the four map links looks like this:
<a href="https://maps.google.com/?q=${gpsLocation}" class="mylink" rel="noreferrer nofollow"><span class="mapmarker"><img src="res/mapmarker.png" alt="" title="Google"></span></a>
That mapmarker.png is just a transparent PNG file that I've added to the project's own res directory (shown dimmed in the Explore window). Then, to give it some mouseover indication, I've added a line of custom CSS:
.mapmarker:hover {opacity:0.5;}
Simple, but effective.
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 20:28   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I also ditched the <span> tags on the map links, and moved the class to the <img> tag.

The final form:
<ja:if exists="originalDate"><i>${originalDate}</i></ja:if>
<ja:else>
<i>${fileDate}</i>
<ja:if test="${fileCategory}" value="video"> | <i>FPS: ${videoFPS} - Auflösung: ${videoWidth}x${videoHeight} - Dauer: ${videoDuration}</i></ja:if>
</ja:else>
<ja:if exists="gpsLocation">
 | <a href="https://maps.google.com/?q=${gpsLocation}" class="mylink" rel="noreferrer nofollow"><img class="mapmarker" src="res/mapmarker.png" alt="" title="Google"></a>
 | <a href="https://www.openstreetmap.org/?mlat=<%=gpsLocation.split(',')[0]%>&mlon=<%=gpsLocation.split(',')[1]%>&zoom=16#map=<%=gpsLocation.split(',')[0] + '/' + gpsLocation.split(',')[1]%>" class="mylink" rel="noreferrer nofollow"><img class="mapmarker" src="res/mapmarker.png" alt="" title="OSM"></a>
 | <a href="https://kart.finn.no/?lng=<%=gpsLocation.split(',')[1]%>&lat=<%=gpsLocation.split(',')[0]%>" class="mylink" rel="noreferrer nofollow"><img class="mapmarker" src="res/mapmarker.png" alt="" title="kart.finn.no"></a>
 | <a href="https://www.windy.com/?${gpsLocation},16" class="mylink" rel="noreferrer nofollow"><img class="mapmarker" src="res/mapmarker.png" alt="" title="windy.com"></a>
</ja:if>
<ja:if exists="meta">
<ja:if test="<%=meta.get("Gps.GPS Altitude") != null && !meta.get("Gps.GPS Altitude").equals("") %>"> | <i>Höhe: ${gpsAltitude}</i></ja:if>
<ja:if test="<%=meta.get("Iptc.Country/Primary Location Name") != null %>"> | <i>Land: <%=meta.get("Iptc.Country/Primary Location Name")%></i></ja:if>
<ja:if test="<%=meta.get("Iptc.City") != null %>"> | <i>Stadt: <%=meta.get("Iptc.City")%></i></ja:if>
<ja:if test="<%=meta.get("Iptc.Province/State") != null %>"> | <i>Bundesland: <%=meta.get("Iptc.Province/State")%></i></ja:if>
<ja:if test="<%=meta.get("Iptc.Sub-location") != null %>"> | <i>Ortsdetail: <%=meta.get("Iptc.Sub-location")%></i></ja:if>
</ja:if>
<ja:switch test="${rating}">
<ja:case value="1"> | <span style="color:gold;">&starf;</span></ja:case>
<ja:case value="2"> | <span style="color:gold;">&starf;&starf;</span></ja:case>
<ja:case value="3"> | <span style="color:gold;">&starf;&starf;&starf;</span></ja:case>
<ja:case value="4"> | <span style="color:gold;">&starf;&starf;&starf;&starf;</span></ja:case>
<ja:case value="5"> | <span style="color:gold;">&starf;&starf;&starf;&starf;&starf;</span></ja:case>
<ja:default></ja:default>
</ja:switch>
<ja:if exists="fileTitle"> | ${fileTitle}</ja:if> | ${comment}
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 22:07   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Attachment mapmarker.svg (473 bytes)
Even better, use the attached mapmarker.svg file instead of mapmarker.png, then add a bit more custom CSS to size it:
.mapmarker {width: 10px;}
.mapmarker:hover {opacity:0.5;}
Resulting demo album uploaded.

https://jefftucker.jalbum.net/MDtest/

I like using SVG's. They're very small, and they resize nicely.
MarkusD

Posts: 867
Registered: 13-Apr-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 3 May 26, 23:28   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Jeff, thanks a lot for cleaning up the code and make it smarter. Very much appreciated. I'll give that a try tomorrow.

And maybe it is time to look into that code which should output the video length. This has stopped working many years ago, but I hadn't reported that.

Sample:
https://www.markus-drueck.de/norge/2026%2001%2030%20Norge/index.html#label=Video&img=P1380011.mp4

I have found videos, where it works:
https://www.markus-drueck.de/norge/index.html#img=Live%20-%20Troms%C3%B8%20Havn%20KF%20-%20Livestream%20Prostneset%20-%20Video_2018-01-31_203225.mp4

https://www.markus-drueck.de/norge/index.html#img=Live%20-%20Trondheim%20Havn%20-%20Hurtigrutekaia%20-%20Video_2018-02-07_092328.mp4

https://www.markus-drueck.de/norge/index.html#img=Video_2020-02-19_185017.mp4

Those videos are from WebCams.

All videos from my own cameras don't work.
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 4 May 26, 00:34   in response to: MarkusD in response to: MarkusD
 
  Click to reply to this thread Reply
Took me a minute to spot it. Think about these lines:
<ja:if exists="originalDate"><i>${originalDate}</i></ja:if>
<ja:else>
<i>${fileDate}</i>
<ja:if test="${fileCategory}" value="video"> | <i>FPS: ${videoFPS} - Auflösung: ${videoWidth}x${videoHeight} - Dauer: ${videoDuration}</i></ja:if>
</ja:else>
It turns out that MP4's and MOV's do have an originalDate, so the <ja:else> clause is never evaluated. So, no video stats.

But other source video formats may not return an originalDate, so the test needs to be a bit more nuanced. Let me tinker with it for a bit....
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 4 May 26, 00:41   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I think what you need in those first few lines (everything before you start looking at the GPS stuff) is:
<ja:if exists="originalDate"><i>${originalDate}</i></ja:if>
<ja:if test="${fileCategory}" value="video"><ja:if not exists="originalDate"><i>${fileDate}</i></ja:if> | <i>FPS: ${videoFPS} - Auflösung: ${videoWidth}x${videoHeight} - Dauer: ${videoDuration}</i></ja:if>
Seems to work in my quick tests.
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 4 May 26, 01:00   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Attachment ss013585.png (13.0 KB)
Uploaded again:

https://jefftucker.jalbum.net/MDtest/

The first video is from an iPhone 14, so a pretty standard format (taken during a week I just spent in a beachfront condo on the Delaware shore). The original of the second video (drop.mp4) is an old AVI format, with very little in the way of "normal" metadata (see screenshot). No originalDate available.
Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 4 May 26, 12:24   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Using the class="icon-location" does the same and follows the text color; no SVG is needed.
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 4 May 26, 14:11   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
I try to stick to more portable solutions.
MarkusD

Posts: 867
Registered: 13-Apr-2006
Re: <ja:if exists="gpsLocation"> not working any more
Posted: 4 May 26, 20:43   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
I think what you need in those first few lines (everything before you start looking at the GPS stuff) is:
<ja:if exists="originalDate"><i>${originalDate}</i></ja:if>
<ja:if test="${fileCategory}" value="video"><ja:if not exists="originalDate"><i>${fileDate}</i></ja:if> | <i>FPS: ${videoFPS} - Auflösung: ${videoWidth}x${videoHeight} - Dauer: ${videoDuration}</i></ja:if>
Seems to work in my quick tests.
Yes, that works für me too. Great!

Bonus question: The duration of a video is for example „00:00:24.960“. I for my self think that this is kind of too much, milliseconds, from a video? How to just cut it of, to „00:00:24“?

Thanks.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums