Files
Soby Chacko 24997117d4 Spring Boot and Cloud updates
Update samples to use Boot 2.4.4
Spring Cloud is updated to 2020.0.2

Remove empty integration tests
2021-03-24 22:47:17 -04:00
..
2020-08-17 16:20:23 -04:00
2020-08-17 16:20:23 -04:00
2020-08-17 16:20:23 -04:00
2021-03-24 22:47:17 -04:00
2020-08-17 16:20:23 -04:00

= Thumbnail Sink

A Spring Cloud Stream Sink which composes thumbnailProcessor|filenameEnricher|fileConsumer to create thumbnails and write to a file.

This app registers the link:../image-thumbnail-processor/src/main/java/io/spring/example/image/thumbnail/processor/ThumbnailProcessor.java[ThumbnailProcessor] as a Spring bean and uses the standard https://github.com/spring-cloud/stream-applications/tree/master/functions/consumer/file-consumer[fileConsumer] to write files.
It implements a link:src/main/java/io/spring/example/image/thumbnail/sink/ThumbnailSinkApplication.java[filenameEnricher] function, which generates filenames as
`thumbnail-%d.jpg`, incrementing the index on each execution, supplied to the fileConsumer in the `filename` message header.
See Also link:src/main/resources/application.properties[application.properties].

== Build

```
./mvnw clean install
```

or to build a Docker image 

```
./mvnw clean package jib:dockerBuild
```