What command i need to run to put in img/ folder with same name on ubuntu jpg file with 35% quality converter from jp2? On windows i run such bat:
for /d %%d in (*) do (
for %%f in ("%%~d\*.jp2") do (
convert -limit memory 0 -limit map 0 "%%~ff" -quality 20 "%%~dpf\jpg\%%~nf.jpg"
)
)
but what and how to do with ubuntu to convert jp2 to jpg with 35% and put jpg's in /img folder?