Skip to content

Commit

Permalink
Merge media and samples into this repository
Browse files Browse the repository at this point in the history
  • Loading branch information
snacks02 committed Jul 23, 2024
1 parent 2e4d553 commit d42c46b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- run: >
apk add
crystal
git-lfs
libjpeg-turbo
libjpeg-turbo-dev
libspng
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<picture>
<source
media="(prefers-color-scheme: dark)"
srcset="https://raw.githubusercontent.com/phenopolis/pluto-logo/main/logo-white.png"
srcset="https://media.githubusercontent.com/media/phenopolis/pluto/media/logo-white.png"
/>
<img
alt="logo"
src="https://raw.githubusercontent.com/phenopolis/pluto-logo/main/logo-black.png"
src="https://media.githubusercontent.com/media/phenopolis/pluto/media/logo-black.png"
width="720px"
/>
</picture>
Expand Down
3 changes: 2 additions & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ development_dependencies:
github: crystal-ameba/ameba
version: ~> 1.6.1
pluto_samples:
github: phenopolis/pluto-samples
github: phenopolis/pluto
branch: samples
stumpy_png:
github: stumpycr/stumpy_png

Expand Down
4 changes: 2 additions & 2 deletions spec/pluto/operation/horizontal_blur_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ describe Pluto::Operation::HorizontalBlur do
end

it "doesn't cause arithmetic overload" do
with_sample("problem_images/28_arithmetic_overflow_in_blur.jpeg") do |io|
with_sample("problematic_images/28_arithmetic_overflow_in_blur.jpeg") do |io|
image = Pluto::ImageRGBA.from_jpeg(io)
expect_digest image.horizontal_blur(10), "d1e2b9363a2e7a36e738599cda8dab844a828b15"
end
end

it "doesn't cause arithmetic overload again" do
with_sample("problem_images/46_arithmetic_overflow_in_blur_again.jpeg") do |io|
with_sample("problematic_images/46_arithmetic_overflow_in_blur_again.jpeg") do |io|
image = Pluto::ImageRGBA.from_jpeg(io)
expect_digest image.horizontal_blur(5), "a6ce6aeb78bc3cc6cff8e39f932b3e778b127950"
end
Expand Down
2 changes: 1 addition & 1 deletion spec/pluto/operation/vertical_blur_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe Pluto::Operation::VerticalBlur do
end

it "doesn't cause arithmetic overload" do
with_sample("problem_images/28_arithmetic_overflow_in_blur.jpeg") do |io|
with_sample("problematic_images/28_arithmetic_overflow_in_blur.jpeg") do |io|
image = Pluto::ImageRGBA.from_jpeg(io)
expect_digest image.vertical_blur(10), "00e2c8a20e4554242bca3e0acf841028a2922fe6"
end
Expand Down

0 comments on commit d42c46b

Please sign in to comment.