Search found 6 matches
- 2012-02-16T13:00:33-07:00
- Forum: Users
- Topic: Image signature changes if saved to a file then read back
- Replies: 10
- Views: 28958
Re: Image signature changes if saved to a file then read bac
I applied img. image_type = Magick::TrueColorType . It works! Amazing! Drarakel, thank you soo much for your help! Anthony, thank you for your guidance! Keep well, guys ) require 'rubygems' require 'rmagick' puts "processing file %s"%[file = ARGV.shift] puts " and you've choosen %sto process ...
- 2012-02-15T11:39:43-07:00
- Forum: Users
- Topic: Image signature changes if saved to a file then read back
- Replies: 10
- Views: 28958
Re: Image signature changes if saved to a file then read bac
I supposed that singature is rather ImageMagick's term than Rmagik's. Here it is signature description from Rmagick docs. img.signature -> string Computes a message digest from an image pixel stream with an implementation of the NIST SHA-256 Message Digest algorithm. This signature uniquely ...
- 2012-02-15T09:01:12-07:00
- Forum: Users
- Topic: Image signature changes if saved to a file then read back
- Replies: 10
- Views: 28958
Re: Image signature changes if saved to a file then read bac
Yes I should had clearly stated in the beginning of my post that I used Rmagick 2.6.0 which is Ruby API to ImageMagick I have a dozen B/W images that I consider symbols - they are figures 0..9, dot and comma. And I need to process a lot of "raw images" consisted of those symbols. As you can see on ...
- 2012-02-15T05:05:34-07:00
- Forum: Users
- Topic: Image signature changes if saved to a file then read back
- Replies: 10
- Views: 28958
Re: Image signature changes if saved to a file then read bac
I made a mistake. The signature value depends on write/read only if I do image processing. Here the test unit with sample image. require 'rubygems' require 'rmagick' puts "processing file %s"%[file = ARGV.shift] puts " and you've choosen %sto process thresholds"%[(process = /process/i =~ ARGV.shift ...
- 2012-02-11T16:31:03-07:00
- Forum: Users
- Topic: Image signature changes if saved to a file then read back
- Replies: 10
- Views: 28958
Re: Image signature changes if saved to a file then read bac
The file format is TIFF img.excerpt!(x, y, width, height) puts img.inspect img.write(f) new_img = Magick::Image.read(f).first puts new_img.inspect img.signature != new_img.signature # why? ./samples/0211.tif TIFF 104x16=>4x10 4x10+0+0 DirectClass 8-bit 325b tmp/0211.tif TIFF 4x10 4x10+0+0 ...
- 2012-02-08T06:43:46-07:00
- Forum: Users
- Topic: Image signature changes if saved to a file then read back
- Replies: 10
- Views: 28958
Image signature changes if saved to a file then read back
Hi,
How can I get the value of new_img.signature from img without saving/reading it ?
Code: Select all
img.excerpt!(x, y, width, height)
img.write(f)
new_img = Magick::Image.read(f).first
img.signature != new_img.signature # why?