How to resize images on sequential functions?
0
votes
2
answers
186
views
I am trying to:
- change the format of my images,
- then resize their height and width of 40%
- then optimize their quality to 35% max of the source and the total size of the image to 35% of the origin.
Here my code:
find . -name '*.png' -exec mogrify -format jpg {} + &&
find . -name '*.{jpeg,jpg}' -exec convert -resize 40% _resized.jpg {} + &&
find ./*.{jpeg,jpg} -exec jpegoptim -m 35% --size=35% {} \;
The resizing -line 2- seems to fail. When I am looking at image property I am getting the same image dimensions.
I expect that the new image:
- is resized
- have the original name + the "resized" word at the end of the name
Asked by Diagathe Josué
(543 rep)
Apr 22, 2020, 10:11 PM
Last activity: Nov 12, 2022, 02:40 PM
Last activity: Nov 12, 2022, 02:40 PM