Try this
This commit is contained in:
@@ -2,6 +2,6 @@ with import <nixpkgs> {};
|
|||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "media";
|
name = "media";
|
||||||
buildInputs = [ imagemagick
|
buildInputs = [ imagemagick
|
||||||
(python3.withPackages (ps: with ps; [ pyyaml ]))
|
python3Packages.pyyaml
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ for x in *; do
|
|||||||
large=$x
|
large=$x
|
||||||
small=../thumbnails-small/$x
|
small=../thumbnails-small/$x
|
||||||
if ! [ -f $small ] || [ $large -nt $small ]; then
|
if ! [ -f $small ] || [ $large -nt $small ]; then
|
||||||
convert $x -resize x"$thumbnail_height" $small
|
magick $x -resize x"$thumbnail_height" $small
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user