Search found 25563 matches

by fmw42
2009-06-30T12:10:27-07:00
Forum: Users
Topic: png24 with IM 6.4.0
Replies: 14
Views: 25648

Re: png24 with IM 6.4.0

That's it exactly. Note that this works with 6.4.0 and 6.5.4.1, but not 6.3.2. I guess the lesson here is not to trust the linux "file" command when it comes to color depths. Stick with "identify -verbose". Thanks for your help. What is the problem with 6.3.2? Is there an error ...
by fmw42
2009-06-30T11:52:39-07:00
Forum: Users
Topic: png24 with IM 6.4.0
Replies: 14
Views: 25648

Re: png24 with IM 6.4.0

try

convert toRed.tif toGreen.tif toBlue.tif -combine PNG24:toColor.png
by fmw42
2009-06-30T09:47:22-07:00
Forum: Users
Topic: png24 with IM 6.4.0
Replies: 14
Views: 25648

Re: png24 with IM 6.4.0

Unfortunately, I can't attach files in this forum. Could it be caused by me only having a green color channel (no red or blue colors) in the source tiff image? Have you seen imagemagick create a png24? I was browsing through the code, and it wasn't obvious that it was able to do so. You can post yo...
by fmw42
2009-06-30T09:13:54-07:00
Forum: Users
Topic: How can I make an on-the-fly diagonal crop?
Replies: 16
Views: 33978

Re: How can I make an on-the-fly diagonal crop?

I think you will need to show me (us) an example as I am still not quite sure what you need. My only thought is to crop, rotate and then crop again or possibly use -virtual-pixels to extend/unfold the image so you have more to work with. An example would help understand what you want to do. Unfortun...
by fmw42
2009-06-30T09:00:46-07:00
Forum: Users
Topic: png24 with IM 6.4.0
Replies: 14
Views: 25648

Re: png24 with IM 6.4.0

I think you will need to post your in.tif so it can be examined and used for testing
by fmw42
2009-06-30T08:56:23-07:00
Forum: Developers
Topic: Summed Area Tables or Integral Images
Replies: 11
Views: 23239

Re: Summed Area Tables or Integral Images

Thanks. I will have to study this. Looks promising to speed up the histogram and cumulative histogram. I have been using PGM to do similar things already. You had told me about that. A number of my scripts use it. Redist uses it now to convert the lut array (that I generate from the two text cumulat...
by fmw42
2009-06-29T22:10:19-07:00
Forum: Developers
Topic: Summed Area Tables or Integral Images
Replies: 11
Views: 23239

Re: Summed Area Tables or Integral Images

I understand, Just trying to be more helpful. A simular perl script can also replace the awk. Though please see my point about the default 8-bit histogram output being broken! I was surprised that was the case! Thanks I appreciate your input. It has been that way for a long time. I just assumed, so...
by fmw42
2009-06-29T21:40:03-07:00
Forum: Developers
Topic: Summed Area Tables or Integral Images
Replies: 11
Views: 23239

Re: Summed Area Tables or Integral Images

My redist and histmatch script do pretty much what you are doing in the shell, but I wrote a loop to do the integration (summing) rather than awk (as I know nothing, yet, about awk). My shell script is currently faster than the IM script above, but still not very quick. That was why I was exploring ...
by fmw42
2009-06-29T19:45:50-07:00
Forum: Users
Topic: How can I make an on-the-fly diagonal crop?
Replies: 16
Views: 33978

Re: How can I make an on-the-fly diagonal crop?

still not quite sure what you want to crop, I think it is just the corner of the frame, but perhaps not. FYI, see my simple script, picframe at http://www.fmwconcepts.com/imagemagick/index.html or Anthony's much more advanced technique at http://www.imagemagick.org/Usage/thumbnails/#frame_edge. He s...
by fmw42
2009-06-29T18:41:20-07:00
Forum: Users
Topic: png24 with IM 6.4.0
Replies: 14
Views: 25648

Re: png24 with IM 6.4.0

try

convert in.tif -depth 8 PNG24:out.png
by fmw42
2009-06-29T12:34:09-07:00
Forum: Bugs
Topic: potential bug setting density and units in PNG IM 6.5.4.0
Replies: 4
Views: 10177

Re: potential bug setting density and units in PNG IM 6.5.4.0

magick wrote:Apparently the PNG specification only permits pixels per centimeter and does not support pixels per inch.
OK. 300 dpi / 2.54 cm/in = 118.11 dpc

P.S. Perhaps Anthony would not mind adding a comment to his page about PNG format to point this out. Thanks
by fmw42
2009-06-29T11:25:43-07:00
Forum: Bugs
Topic: potential bug setting density and units in PNG IM 6.5.4.0
Replies: 4
Views: 10177

potential bug setting density and units in PNG IM 6.5.4.0

IM 6.5.4.0 Q16 Mac OSX Tiger Create test image: convert rose: rose.png identify -verbose rose.png Image: rose.png Format: PNG (Portable Network Graphics) Class: DirectClass Geometry: 70x46+0+0 Resolution: 72x72 Print size: 0.972222x0.638889 Units: Undefined Now change the density and units: convert ...
by fmw42
2009-06-29T11:17:24-07:00
Forum: Users
Topic: Transparency working differently in 6.5 from 6.3 and 6.4
Replies: 2
Views: 4977

Re: Transparency working differently in 6.5 from 6.3 and 6.4

convert -size 1000x1000 -font Times-BoldItalic -pointsize 30 -gravity center xc:transparent -draw "fill black text 1,1 'H20 MARK' fill white text -1,-1 'H20 MARK' fill transparent text 0,0 'H20 MARK'" png:test.png This works fine for me in IM 6.5.4.0 Q16 Mac OSX Tiger. Get a transparent b...
by fmw42
2009-06-29T08:45:31-07:00
Forum: Users
Topic: How can I make an on-the-fly diagonal crop?
Replies: 16
Views: 33978

Re: How can I make an on-the-fly diagonal crop?

You cannot just have a diagonal line image! You have to have it filled out with some kind of padding (typically black or white) to a rectangular region. You may be able to extract the diagonal line data and format it into a string of text or into a horizontal or vertical image. Please clarify what y...