Skip to content

Commit

Permalink
Update Imageflow.Server.Host to use a more boring test image
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 17, 2025
1 parent e25903c commit 70157dd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
6 changes: 4 additions & 2 deletions src/Imageflow.Server.Host/Imageflow.Server.Host.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Content Include="imageflow.toml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="images\robotcrush.png">
<Content Include="imageflow-test\imageflow-operational.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand All @@ -40,6 +40,8 @@
</ItemGroup>

<ItemGroup>
<Folder Include="images/" />
<Folder Include="imageflow-test\" />

</ItemGroup>

</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions src/Imageflow.Server.Host/imageflow.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ cache_control = "public, max-age=2592000"
apply_default_commands = "quality=76&webp.quality=70&f.sharpen=23&down.filter=mitchell"

[[routes]]
prefix = '/images/'
map_to_physical_folder='${app.approot}\images\'
prefix = '/imageflow-test/'
map_to_physical_folder='${app.approot}\imageflow-test\'

# ====== Caching to disk ======
[disk_cache] # HybridCache
Expand Down Expand Up @@ -82,8 +82,9 @@ cache_control = "no-cache"
content_type = "text/html" # required
content = """
<h3>If you see an angry, AI-generated robot below, Imageflow Server is running</h3>
<p><img src="/images/robotcrush.png?w=300&f.sharpen=30&format=webp&webp.lossless=true"</p>
<h3>You should see IMAGEFLOW IS RUNNING below</h3>
<p><img width="400" srcset="/imageflow-test/imageflow-operational.png?format=webp&webp.lossless=true&w=1200 1200w, /imageflow-test/imageflow-operational.png?format=webp&webp.lossless=true&w=800 800w, /imageflow-test/imageflow-operational.png?format=webp&webp.lossless=true&w=400 400w"
src="/imageflow-test/imageflow-operational.png?format=webp&webp.lossless=true"</p>
<p><a href="/imageflow.debug">Visit /imageflow.debug for diagnostics</a></p>
<p><strong>Edit imageflow.toml to delete or modify this default page, then restart the site.</p>
Expand All @@ -103,4 +104,5 @@ megapixels = 40
[security.max_frame_resolution]
width = 12000
height = 12000
megapixels = 80
megapixels = 80

Binary file removed src/Imageflow.Server.Host/images/robotcrush.png
Binary file not shown.
12 changes: 6 additions & 6 deletions src/Imageflow.Server.Host/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
"Microsoft.DotNet.ILCompiler": {
"type": "Direct",
"requested": "[8.0.10, )",
"resolved": "8.0.10",
"contentHash": "iThS5LNCcLlFkUlnxCJMgMSQ6s1BgbZo9ri11DDgNxDn8StwgFVUQJ8O5N/7S037jcS1md8tWp7Zu2YconIlag=="
"requested": "[8.0.12, )",
"resolved": "8.0.12",
"contentHash": "zhXnz2574mBc/ocGoG+qB0BgyoK9bH7f7Te1fNQJGbpwLLwZO5KKaTBmfM8N8THb3a2vQVFonbBzQ//d15TmQQ=="
},
"Microsoft.Extensions.Http.Polly": {
"type": "Direct",
Expand All @@ -33,9 +33,9 @@
},
"Microsoft.NET.ILLink.Tasks": {
"type": "Direct",
"requested": "[8.0.11, )",
"resolved": "8.0.11",
"contentHash": "zk5lnZrYJgtuJG8L4v17Ej8rZ3PUcR2iweNV08BaO5LbYHIi2wNaVNcJoLxvqgQdnjLlKnCCfVGLDr6QHeAarQ=="
"requested": "[8.0.12, )",
"resolved": "8.0.12",
"contentHash": "FV4HnQ3JI15PHnJ5PGTbz+rYvrih42oLi/7UMIshNwCwUZhTq13UzrggtXk4ygrcMcN+4jsS6hhshx2p/Zd0ig=="
},
"AWSSDK.Core": {
"type": "Transitive",
Expand Down

0 comments on commit 70157dd

Please sign in to comment.