Hello! Help. There is an object. I need to resize the image and get the pixels. I need information about the changed pixels. Is it possible without intermediate(TEMP) files? I do not know much English. That's what I want.
read image - IM
resize - IM
getpixels - IM
Not TempFile!
Work with object...
Work with object...
Last edited by newuser on 2019-06-01T06:47:21-07:00, edited 1 time in total.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Work with object...
What do you mean "changed pixels" all pixels will be changes when you resize due to interpolation. Please always provide your IM version and platform when asking questions. Please explain in further detail you question. To get pixel values after you resize, just use the command line:
See https://imagemagick.org/Usage/files/#txt
Sorry, I do not know PerlMagick, only the command line.
Code: Select all
convert image -resize WxH txt:
Sorry, I do not know PerlMagick, only the command line.
Re: Work with object...
Thanks for the answer. You understood correctly! Can this be done using the perl module?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Work with object...
Sorry, I do not know PerlMagick. Someone else will have to point you in the right direction.
Re: Work with object...
With PerlMagick you can read an image, resize it, and get the pixels all in memory. See https://imagemagick.org/script/perl-magick.php for example PerlMagick scripts.