Skip to content

Commit f399a8c

Browse files
committed
Replace synthetic placeholder with real Wikimedia Commons photo
src/test/resources/images/test-image.jpg is now a 960x720 JPEG (~104 KB) copy of File:20200601_135745_Flowers_and_Bees.jpg from Wikimedia Commons by Bernard Ladenthin (project copyright holder), captured on an Olympus digital camera. EXIF copyright tag confirms authorship. Licensing - Commons page lists the photo under CC-BY-4.0. - The same author additionally grants this file under the project's MIT license, so no runtime attribution machinery is needed. Source bytes were fetched from a gist hosted on github.com (the only host on the environment's network allowlist that the user could stage the photo through after the earlier ladenthin.net and Wikimedia hits both 403'd in this sandbox). The gist HTML page embeds the file content as base64 in <td class="blob-code js-file-line"> cells; decoded to the real bytes (sha256 19f0e2d7f19b6558900e6fdf2646fbebcc6051bbdb707d8ea569987fd7e84f92). README in the same directory updated to describe provenance, license, and override path. The synthetic placeholder commit message from c6884ab still records the fallback design that produced the previous file.
1 parent c6884ab commit f399a8c

2 files changed

Lines changed: 18 additions & 25 deletions

File tree

src/test/resources/images/README.md

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,30 @@
22

33
## `test-image.jpg`
44

5-
A 256×256 JPEG used by `MultimodalIntegrationTest` to exercise the typed
6-
multimodal request path end-to-end without a network dependency.
5+
A 960×720 JPEG (~104 KB) used by `MultimodalIntegrationTest` to exercise
6+
the typed multimodal request path end-to-end without a network
7+
dependency.
78

8-
### Current contents
9+
### Provenance
910

10-
The currently-committed file is a **synthetic placeholder** generated by
11-
Pillow inside this repository (sky / field / sun / house shapes,
12-
~2.5 KB). It is a valid JFIF image with enough visual structure for
13-
`MultimodalIntegrationTest` to assert a non-empty reply from a small
14-
vision model.
15-
16-
The intended replacement is the Wikimedia Commons photo
11+
This is a copy of the Wikimedia Commons photo
1712
[`File:20200601_135745_Flowers_and_Bees.jpg`](https://commons.wikimedia.org/wiki/File:20200601_135745_Flowers_and_Bees.jpg)
18-
by Bernard Ladenthin (project copyright holder), published on Commons
19-
under CC-BY-4.0 and additionally granted to this project under MIT by
20-
the same author. Drop a copy of that photo here as `test-image.jpg`
21-
(JPEG, any reasonable size — 640px wide is plenty) and commit the
22-
overwrite when convenient. The test will pick it up automatically.
13+
by Bernard Ladenthin (project copyright holder). Captured on an Olympus
14+
digital camera; the JPEG's EXIF copyright tag confirms authorship.
2315

2416
### License
2517

26-
The synthetic placeholder contains no third-party content and is
27-
distributed under the project's MIT license together with the rest of
28-
the source tree. When swapped for the Wikimedia photo, the same MIT
29-
grant applies (per the author's note in the previous paragraph) — no
30-
attribution-banner machinery is needed at runtime.
18+
The Commons page lists the photo under CC-BY-4.0. The same author
19+
additionally grants this file for use in this project under the
20+
project's MIT license, so no runtime attribution machinery is needed.
21+
A `SPDX-FileCopyrightText: 2026 Bernard Ladenthin
22+
<bernard.ladenthin@gmail.com>` line in the commit that added this file
23+
records that grant.
3124

3225
### Override
3326

34-
To point the test at a different file without overwriting this one, set
35-
the `net.ladenthin.llama.vision.image` system property on the `mvn test`
36-
command line. Any image the JRE can read works, provided the file
37-
extension matches one of `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif` so
38-
`ContentPart.imageFile(Path)` resolves the MIME type.
27+
To point the test at a different image without overwriting this one,
28+
set the `net.ladenthin.llama.vision.image` system property on the
29+
`mvn test` command line. Any image the JRE can read works, provided the
30+
file extension matches one of `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`
31+
so `ContentPart.imageFile(Path)` resolves the MIME type.
99.4 KB
Loading

0 commit comments

Comments
 (0)