mogrify file number limit

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
schel4ok
Posts: 18
Joined: 2015-08-31T10:38:58-07:00
Authentication code: 1151

mogrify file number limit

Post by schel4ok »

Hi,

It seems that mogrify has file number limit per directory.
Because I have one directory with 3335 pictures and mogrify always returns me line 4: /d/openserver/modules/imagemagick/mogrify: Bad file number

I checked that when I have more than 742 files in directory then I always got this error. But when I move the rest files to another directory there is no this error.

Is it possible to increase this limit?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify file number limit

Post by fmw42 »

You could write a script to loop over each image in the directory and use convert to process them. You should also provide your IM version and platform. Perhaps an upgrade of IM might work better.
schel4ok
Posts: 18
Joined: 2015-08-31T10:38:58-07:00
Authentication code: 1151

Re: mogrify file number limit

Post by schel4ok »

$ convert -version
Version: ImageMagick 6.8.9-9 Q16 x86 2014-10-19 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify file number limit

Post by fmw42 »

What is your platform?

One of the IM developers will need to reply about the file number limitation you are encountering with mogrify.
schel4ok
Posts: 18
Joined: 2015-08-31T10:38:58-07:00
Authentication code: 1151

Re: mogrify file number limit

Post by schel4ok »

I use Open Server 5.2.2 from http://open-server.ru/
Post Reply