Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck with -a or -m commands #36

Open
dodikridwan opened this issue Mar 26, 2024 · 3 comments
Open

Stuck with -a or -m commands #36

dodikridwan opened this issue Mar 26, 2024 · 3 comments

Comments

@dodikridwan
Copy link

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
Copy link
Member

I think there is such a bug with the ImageMagick or some device, you can read this issue #16 (comment)

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
Copy link
Author

dodikridwan commented Mar 26, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants