Awesomesh0t / awesomeshot

A command-line screenshot tool written in bash 5.1.16+
http://awesomeshot.vercel.app/
MIT License
77 stars 9 forks source link

Stuck with -a or -m commands #36

Open dodikridwan opened 7 months ago

dodikridwan commented 7 months ago

I tried the -a command, but got stuck here

Screenshot_20240326-074303_Termux

And I tried again with the -m command, but still the same problem

Screenshot_20240326-073724_Termux

I have tried many times, from reinstalling, checking the .conf file but still can't. Any help, or fix?

armandwipangestu commented 7 months ago

I think there is such a bug with the ImageMagick or some device, you can read this issue https://github.com/Awesomesh0t/awesomeshot/issues/16#issuecomment-1222491271

because in my case, I haven't found any bug like this before. Here my version uses

Package Version
imagemagick 7.1.1-21 Q16-HDRI aarch64 21667
inotify-tools 4.23.9.0
bc 1.07.1
ncurses-utils 6.4.20231001

If you want to try if ImageMagick is working ok, you can put the code from one of the functions from binary Awesomeshot and then run it on your terminal, e.g., convertBorder function to add background:

  1. Load the config
source ~/.config/awesomeshot/awesomeshot.conf
  1. Try export variable file_name
export file_name="/some/location/ex-foo-bar.png"
  1. Run the function

Note: This function you can find in $PREFIX/lib/awesomeshot/convertBackground.sh

convert "$file_name" -bordercolor "#FFFFFF" -border ${background_border_size} "$file_name"
Example Run
example-run
  1. Result
Before Edited After Edited
before after
dodikridwan commented 7 months ago

Hi, thanks for reply. I have used your method to check ImageMagick, and it was successful. Screenshot_20240326-225956_Termux

But when I use the old method, by typing awesomeshot -a or -m commands it still doesn't work. And still stuck at "Backup original photo" Screenshot_20240326-225509_Termux

Then I changed contents of the awesomeshot.conf file in the Backup original photo section from "yes" to " " (empty). And a syntax error appears. Screenshot_20240326-225354_Termux

Please explain how to fix it, I really appreciate your kind feedback. ^^

armandwipangestu commented 7 months ago

it's you use older version awesomeshot earlier then upgrade to the newer version?

if yes, what if you re-generate the new config of awesomeshot with this command:

awesomeshot -c

then press Y + ENTER

because if i'm not forgot the newer version have different config