Search found 12908 matches

by snibgo
2020-03-19T08:25:57-07:00
Forum: Users
Topic: Cropping Image via mask, then convert it to jpg, but get uncropped Image
Replies: 4
Views: 409

Re: Cropping Image via mask, then convert it to jpg, but get uncropped Image

You haven't cropped anything. You have merely made some pixels transparent, with "-compose Copy_Opacity -composite". JPEG files cannot store transparency.

If you want, you could "-trim" after "-compose Copy_Opacity -composite". But in your example, "-trim" wouldn't remove any pixels.
by snibgo
2020-03-18T23:49:05-07:00
Forum: Users
Topic: Count amount of non-continuous blocks in an image
Replies: 60
Views: 5338

Re: Count amount of non-continuous blocks in an image

For the flower image, the input has transparent black pixels, with bands of transparent white at top and bottom. We can see these with: magick sixFlower.png -alpha off sixflower_na.png The result sixflower_na.png is: http://snibgo.com/imforums/sixflower_na.png The connected-component list correctly ...
by snibgo
2020-03-18T21:42:30-07:00
Forum: MagickWand
Topic: problem during executing MagickWand resize method parallel (MultiThread)
Replies: 32
Views: 1677

Re: problem during executing MagickWand resize method parallel (MultiThread)

Upload it to anywhere on the internet and paste the URL here.
by snibgo
2020-03-18T16:58:49-07:00
Forum: Developers
Topic: CONVERTER IMAGEM JPG PARA PDF
Replies: 5
Views: 693

Re: CONVERTER IMAGEM JPG PARA PDF

Sorry, I can't read Spanish.

But the answer may be to use a "for" loop.
by snibgo
2020-03-18T16:40:31-07:00
Forum: Magick++
Topic: DrawRoundedRect doesn't work
Replies: 3
Views: 469

Re: DrawRoundedRect doesn't work

From drawable.h, it seems the parameters are: double upperLeftX_, double upperLeftY_, double lowerRightX_, double lowerRightY_, double cornerWidth_, double cornerHeight_

But you have different parameters. Maybe they are okay; I don't know.
by snibgo
2020-03-18T14:21:02-07:00
Forum: Magick++
Topic: DrawRoundedRect doesn't work
Replies: 3
Views: 469

Re: DrawRoundedRect doesn't work

ap0c552 wrote:double center_y = m_left + height/2;
Wrong.
by snibgo
2020-03-18T13:12:46-07:00
Forum: Users
Topic: Set 4 borders of different widths
Replies: 5
Views: 523

Re: Set 4 borders of different widths

The offsets are the position of the extent top-left in relation to the input image top-left, not the position of the image in relation to the extent. When creating a border, we usually want the extent to start above and to the left of the input image.
by snibgo
2020-03-18T04:30:52-07:00
Forum: Users
Topic: Cut many images at multiple vertical points and swap parts to new image
Replies: 1
Views: 326

Re: Cut many images at multiple vertical points and swap parts to new image

For example:

Code: Select all

magick rose: -crop 2x1@ +swap +append x.png
You can use "magick mogrify" if you want.
by snibgo
2020-03-18T04:27:07-07:00
Forum: Users
Topic: Set 4 borders of different widths
Replies: 5
Views: 523

Re: Set 4 borders of different widths

This can be done in a single operation, using "-extent" with %[fx:] parameters. For example, a border of (10,20,30,40) at (left,top,right,bottom):

Code: Select all

magick rose: -background Blue -extent %[fx:w+10+30]x%[fx:h+20+40]-10-20 x.png
by snibgo
2020-03-18T04:22:36-07:00
Forum: Bugs
Topic: No Decode Delegate when using stdin
Replies: 2
Views: 281

Re: No Decode Delegate when using stdin

What version of IM?

I'm on Windows, so can't use "display", so can't test this, but does "display" read images from stdin? Perhaps you need a "-" in the position of a filename.
by snibgo
2020-03-16T22:54:40-07:00
Forum: Developers
Topic: Exception : NoDecodeDelegateForThisImageFormat (MFC application)
Replies: 6
Views: 361

Re: Exception : NoDecodeDelegateForThisImageFormat (MFC application)

I don't use your build methods, so can't advise on them.

What does "magick -version" say about your build?
by snibgo
2020-03-16T19:21:38-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 1107

Re: Process images to stdout immediately after they are read from stdin

Oops, yes, I didn't spot that. IM can cope with hundreds of thousands of images, but not an infinite number.
by snibgo
2020-03-16T16:40:08-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 1107

Re: Process images to stdout immediately after they are read from stdin

I suppose you have checked that you have plenty of free space on "/tmp"?
by snibgo
2020-03-16T13:17:36-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 1107

Re: Process images to stdout immediately after they are read from stdin

barabanus wrote:{ for i in $(seq 10000); do convert logo: ppm:-; done } | magick mogrify -resize 50% png:- >/dev/null
Your command is bad. The "convert" writes (to the pipe) in ppm format. The "magick mogrify" tries to read png format from the pipe.
by snibgo
2020-03-16T12:34:44-07:00
Forum: Users
Topic: Process images to stdout immediately after they are read from stdin
Replies: 17
Views: 1107

Re: Process images to stdout immediately after they are read from stdin

"mogrify" has a different syntax to "convert". What was your exact command? This works fine for me, on Windows 8.1: %IMG7%magick toes.png -duplicate 200 png:- | %IMG7%magick mogrify -resize 50% png:- | %IMG7%ffmpeg -f image2pipe -framerate 60 -i - movie.mp4 Looking at the console, and using "taskmgr...