Search found 1147 matches

by glennrp
2016-10-11T09:26:08-07:00
Forum: Bugs
Topic: Original dimensions are remembered when cropping => issues with PDF output
Replies: 3
Views: 2866

Re: Original dimensions are remembered when cropping => issues with PDF output

In a cropped PNG image, the original dimensions are stored in the standard "oFFs" chunk and the nonstandard "vpAg" chunk. The "+repage" option instructs ImageMagick to discard those chunks while writing the PNG output file.
by glennrp
2016-10-09T05:33:53-07:00
Forum: Developers
Topic: Request: add portable.7z files to download set
Replies: 1
Views: 4522

Request: add portable.7z files to download set

I'm observing that the most downloaded files from SourceForge are the *portable.zip files; I think it would be worthwhile adding *portable.7z to save some wear and tear on the Internet, being less than half the size (31.6MB versus 74.8MB).
by glennrp
2016-10-06T11:01:01-07:00
Forum: Bugs
Topic: Transparency ignored in GIF
Replies: 6
Views: 7426

Re: Transparency ignored in GIF

It is a 2-bit GIF with 4 colors plus the transparent color; the transparent color is therefore out of range (note the "4c"):

Code: Select all

magick identify *.gif
pages.gif GIF 18x16 18x16+0+0 8-bit sRGB 4c 102B 0.000u 0:00.000
by glennrp
2016-09-13T09:18:24-07:00
Forum: Users
Topic: Convert PNG to BGR 565
Replies: 1
Views: 1670

Re: Convert PNG to BGR 565

I answered the same question on StackOverflow last night. See
http://stackoverflow.com/questions/3945 ... 5#39461115
by glennrp
2016-09-09T05:55:15-07:00
Forum: Bugs
Topic: Hang file and error INFECTED PNG files
Replies: 5
Views: 8947

Re: Hang file and error INFECTED PNG files

The "hang" is a 32k by 32k by 1-bit grayscale PNG which expands to a 4-terabyte image. Some of the "infected_error" images are CgBI files not PNG files, and others seem to mostly have truncated IDAT or IDAT with bad CRC.
by glennrp
2016-09-06T17:23:55-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 19710

Re: [Solved] Convert a PNG image to a C++ Array

"-depth 8" means 8 bits per sample, so indeed the command will give you a 32-bit RGBA (8-8-8-8). I should have changed the name of the output file to "rgba14x14.h" though, just to clarify that. I'll do that now.
by glennrp
2016-09-06T11:07:06-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 19710

Re: Convert a PNG image to a C++ Array

My image is 14*14. Should I change the canvas size to 28*28? Or do I completely misunderstand it? OK, then, assuming you have a 14x14 RGBA file.png, convert file.png -define h:format=rgba -depth 8 -size 14x14 rgba14x14.h I don't know what orientation Notepad wants. If your result is upside-down or ...
by glennrp
2016-09-06T08:19:59-07:00
Forum: Users
Topic: [Solved] Convert a PNG image to a C++ Array
Replies: 15
Views: 19710

Re: Convert a PNG image to a C++ Array

Assuming you have a 28x28 grayscale file.png,

Code: Select all

convert file.png -define h:format=gray -depth 8 -size 28x28  grey28x28.h
by glennrp
2016-09-04T18:03:27-07:00
Forum: Bugs
Topic: Typo in "resize" usage documentation
Replies: 2
Views: 2426

Re: Typo in "resize" usage documentation

wierd -> weird, colorpsace -> colorspace, perhaps more.
by glennrp
2016-09-04T15:44:16-07:00
Forum: Users
Topic: Building with PNG Delegate problems
Replies: 6
Views: 9486

Re: Building with PNG Delegate problems

Here's what I do on Ubuntu 16:04: First, I cd into the libpng source directory and build libpng with configure --prefix=/home/glennrp/IM --with-libpng-prefix=IM make make install The first "--prefix" tells where to install libpng (in this case, an "IM" subdirectory in my home directory), and the "--...
by glennrp
2016-08-28T17:03:38-07:00
Forum: Users
Topic: Correcting Alignment of an image series
Replies: 11
Views: 5887

Re: Correcting Alignment of an image series

Sadly, I don't have a method for detecting faces (but I'd like one). Funny you should ask. I just posted an image to Facebook a few minutes ago and was amused by the face recognition that it did: https://www.facebook.com/photo.php?fbid=10210653603682037&set=a.1022183400622.4334.1406326412&type=3&th...
by glennrp
2016-08-23T18:02:11-07:00
Forum: Developers
Topic: Please port OrderedPosterizeImage to IM7
Replies: 0
Views: 7494

Please port OrderedPosterizeImage to IM7

The OrderedPosterizeImageChannel method has not been ported from IM6 to IM7, so IM7 falls back on the original bi-level OrderedDitherImage method. Given a black-to-white gradient image, compare IM-7.0.2-9 magick gradient.png -ordered-dither o8x8,6 od_o8x8_6_im7.png which has only black or white pixe...
by glennrp
2016-08-12T13:48:41-07:00
Forum: Bugs
Topic: bug when using --with-quantum-depth=32
Replies: 13
Views: 6383

Re: bug when using --with-quantum-depth=32

I expect to fix this bug sometime.
by glennrp
2016-08-08T17:12:13-07:00
Forum: Users
Topic: Selected conversion from PNG to TXT
Replies: 12
Views: 4902

Re: Selected conversion from PNG to TXT

To get a list of the white pixels:

Code: Select all

magick image.png txt:- | grep white
by glennrp
2016-08-01T13:59:38-07:00
Forum: Bugs
Topic: Colortable bug w alpha channel image
Replies: 9
Views: 5354

Re: Colortable bug w alpha channel image

Well, for starters, you only have 13293 different RGBA pixels present, so "-colors 65535" should have no effect, if things are working properly: glenn.rp> convert CatHead_150x150.png cathead.txt glenn.rp> sort -u cathead.txt | wc 13294 39880 645121 It has always bothered me that "-colors N" doesn't ...