Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions image-resize/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions image-resize/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "image-resize"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
publish = false

Expand All @@ -11,7 +11,7 @@ name = "image-resize"
path = "src/main.rs"

[dependencies]
iii-sdk = "=0.11.3"
iii-sdk = "=0.12.0-next.1"
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp"] }
kamadak-exif = "0.6"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "signal"] }
Expand Down
4 changes: 0 additions & 4 deletions image-resize/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ RUN rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
WORKDIR /build
COPY Cargo.toml Cargo.lock ./
COPY src/ src/
COPY build.rs ./

RUN cargo run --release -- --manifest > /build/worker.yaml

RUN case "${TARGETARCH}" in \
amd64) \
Expand All @@ -43,7 +40,6 @@ FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*

COPY --from=builder /worker /worker
COPY --from=builder /build/worker.yaml /iii/worker.yaml

ENV III_ENGINE_URL=ws://host.containers.internal:49134

Expand Down
6 changes: 0 additions & 6 deletions image-resize/build.rs

This file was deleted.

17 changes: 6 additions & 11 deletions image-resize/config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
workers:
# === iii:image-resize BEGIN ===
- class: workers::image_resize::ImageResizeWorker
config:
height: 200
quality:
jpeg: 85
webp: 80
strategy: scale-to-fit
width: 200
# === iii:image-resize END ===
width: 200
height: 200
strategy: scale-to-fit
quality:
jpeg: 85
webp: 80
2 changes: 0 additions & 2 deletions image-resize/iii.toml

This file was deleted.

11 changes: 0 additions & 11 deletions image-resize/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::sync::Arc;

mod config;
mod handler;
mod manifest;
mod processing;

#[derive(Parser, Debug)]
Expand All @@ -18,10 +17,6 @@ struct Cli {
/// WebSocket URL of the III engine (port 49134 = engine main WS, not StreamModule 3112)
#[arg(long, default_value = "ws://127.0.0.1:49134")]
url: String,

/// Output module manifest as JSON and exit
#[arg(long)]
manifest: bool,
}

#[tokio::main]
Expand All @@ -35,12 +30,6 @@ async fn main() -> Result<()> {

let cli = Cli::parse();

if cli.manifest {
let manifest = manifest::build_manifest();
println!("{}", serde_json::to_string_pretty(&manifest).unwrap());
return Ok(());
}

let resize_config = match config::load_config(&cli.config) {
Ok(c) => {
tracing::info!(
Expand Down
63 changes: 0 additions & 63 deletions image-resize/src/manifest.rs

This file was deleted.

Loading