Page 1 of 1

New User on Ubuntu

Posted: 2020-01-22T07:33:55-07:00
by Aby
Completely new to Ubunutu and had one of my python scripts bricked by the 'Input' function as part of ImageMagick. (I was trying to import the functions of the script into a virtual environment.)

I didn't even know Image Magick was installed on my computer. I don't even know how an 'image processing' software can accept .py files as input. I don't know how the Input function accepts files at all considering the documentation on lists the function as a screen capture tool.

I now have had several hours of work destroyed and I'd like advice on how to a) recover the original script b) open this new .py file as an image c) cry and completely remove this intrusive software from my computer.


Re: New User on Ubuntu

Posted: 2020-01-22T10:01:03-07:00
by snibgo
ImageMagick is a general-purpose raster image processor. It takes raster images as input, and writes raster images as output. It also has some vector capabilities. It can also capture screens. It has a number of APIs (application program interfaces) including command-line, C, C++ and Python. I don't know the Python interface.

A python script isn't a raster image file.

Most of your post makes no sense to me.

If you want to remove ImageMagick from your computer, then simply delete it.

Re: New User on Ubuntu

Posted: 2020-01-22T11:47:16-07:00
by Aby
I am as confused as you are. Here I'll try again.

1. I had a .py file with instructions, let's call it
2. I typed
>> input
in the terminal, which I now realise was the mistake.
3. now has a ton of image related scripts, raster data as you pointed out, and lists "ImageMagick" as the creator.

Now if you'd like to continue to be unhelpful no one would appreciate that. Alternatively you could try out that method I outlined above and attempt to help me.

If a "general-purpose raster image processor" is programed to be as dumb as overwrite files that aren't image formatted and do so without asking the user surely then the users have a way to recover any lost files destroyed by this obvious oversight.

Re: New User on Ubuntu

Posted: 2020-01-22T12:42:45-07:00
by fmw42
Can you post your Python file so we can see how it is calling ImageMagick?

Re: New User on Ubuntu

Posted: 2020-01-22T12:55:58-07:00
by snibgo
Aby wrote:2. I typed
>> input
I don't know what your "input" program is, or what it does. ImageMagick does have an "import" program, which will import an image from the screen and write it to the file you name, in this case "". If that file already exists, it will be overwritten. See the documentation
Aby wrote:... a way to recover any lost files destroyed by this obvious oversight.
I suggest you restore from a backup.