-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01d20ac
commit 80f210b
Showing
9 changed files
with
293 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
CMD | ||
CodeFactor | ||
Exif | ||
Flaticon | ||
Flaticons | ||
Freepik | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Test offline | ||
|
||
Code | ||
dm <- resmush_url(png_url) | ||
Message | ||
! Offline | ||
|
||
--- | ||
|
||
Code | ||
dm | ||
Output | ||
src_img | ||
1 https://raw.githubusercontent.com/dieghernan/resmush/main/inst/extimg/example.png | ||
dest_img src_size dest_size compress_ratio notes | ||
1 NA NA NA NA Offline | ||
|
||
# Test corner | ||
|
||
Code | ||
dm <- resmush_url(png_url) | ||
Message | ||
! API Not responding, check <https://resmush.it/status> | ||
|
||
--- | ||
|
||
Code | ||
dm | ||
Output | ||
src_img | ||
1 https://raw.githubusercontent.com/dieghernan/resmush/main/inst/extimg/example.png | ||
dest_img src_size dest_size compress_ratio | ||
1 NA NA NA NA | ||
notes | ||
1 API Not responding, check https://resmush.it/status} | ||
|
||
# Test not url | ||
|
||
Code | ||
dm <- resmush_url(turl) | ||
Message | ||
! API Error for <https://dieghernan.github.io/aaabbbccc.png> | ||
i Error 401: Cannot copy from remote url | ||
|
||
--- | ||
|
||
Code | ||
dm | ||
Output | ||
src_img dest_img src_size dest_size | ||
1 https://dieghernan.github.io/aaabbbccc.png NA NA NA | ||
compress_ratio notes | ||
1 NA 401: Cannot copy from remote url | ||
|
||
# Not valid file | ||
|
||
Code | ||
dm <- resmush_url(turl) | ||
Message | ||
! API Error for <https://raw.githubusercontent.com/dieghernan/resmush/main/README.md> | ||
i Error 403: Unauthorized extension. Allowed are : JPG, PNG, GIF, BMP, TIFF, | ||
WEBP | ||
|
||
--- | ||
|
||
Code | ||
dm | ||
Output | ||
src_img dest_img | ||
1 https://raw.githubusercontent.com/dieghernan/resmush/main/README.md NA | ||
src_size dest_size compress_ratio | ||
1 NA NA NA | ||
notes | ||
1 403: Unauthorized extension. Allowed are : JPG, PNG, GIF, BMP, TIFF, WEBP | ||
|
Oops, something went wrong.