Created
November 10, 2018 11:53
-
-
Save Gruppio/f2fbc50f3c3282a0f291bfd9b062e5d6 to your computer and use it in GitHub Desktop.
Downloads images from RedBubble.com with a dimension of 512x512 and black background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pass as parameter a redbubble image link like https://ih1.redbubble.net/image.379381203.9755/st%2Csmall%2C420x460-pad%2C420x460%2Cf8f8f8.lite-1u2.jpg | |
url="$1" | |
newUrl=${url//420/512} | |
newUrl=${newUrl//460/512} | |
newUrl=${newUrl//f8/00} | |
curl "$newUrl" > "$(uuidgen).jpg" |
How do I set up to download large image pixels?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
single line solution, copy url and run below command: