-1

Hi gus i'm just trying to save my output script to image file with convert imagemagick , but i have an issue with the result did any clue for fixing my issue ? the image file isnt generate in the right way , here my script result is here

and i run a command

./script.sh | convert label:@- myscript.png

and the result image isnt show with correct

sudo3rs
  • 3
  • 2
  • In what respect is the generated image not correct? The picture you linked at, looks like a good screenshot. – user1934428 Jul 09 '20 at 06:24
  • that was the result when i run script without use convert , and if i use convert for generate image from script , the result isnt like the screenshoot i was take – sudo3rs Jul 09 '20 at 06:39
  • So your script.sh is writing a jpeg file to stdout, and you posted just this jpg file. But you still didn't show the incorrect png image generated, so I have no clue what went wrong. At least you need to describe what is wrong with the png, and since having a pipe is is not relevant to the problem, I would separate the issues: Do a `script.sh >myscript.jpg` and then focus on `convert label:@- myscript.png – user1934428 Jul 09 '20 at 06:44
  • @user1934428 here is the image result https://imgur.com/0QoJDUU – sudo3rs Jul 09 '20 at 07:24

1 Answers1

0

Another way to do that in ImageMagick would be:

convert label:@scriptfile.sh script.png

But you may have to edit your ImageMagick policy.xml file to enable the use of @.
fmw42
  • 46,825
  • 10
  • 62
  • 80