Processing for print

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?".
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

Yeah, kept on typing the extra "s" 8) .
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

snibgo: Good, analyze is on the list now. A lot is going on here. Correct me if I am wrong: All I need to do is copy Makefile.am and the *.c files to filters; the rest is just to explain what modules, etc., are. If that's the case, then I just need to rebuild %im32f%. For my PC, it takes a very long time to build, so I want to make sure I don't have to do it unnecessarily anymore :? .
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Processing for print

Post by snibgo »

afre wrote:Correct me if I am wrong: All I need to do is copy Makefile.am and the *.c files to filters ...
You can get all the C sources from one zip file, see http://im.snibgo.com/zipbats.htm

Annoyingly, makefle.am doesn't get stuffed into the zip [I'll correct this], so you'll have to copy-paste it from the website.

Yes, just copy those, then the five commands: "automake" to "make install".

[If I've missed a step, please tell me, and I'll correct the web page.]

A full IM build takes my laptop about 30 minutes. If I've only changed a process module, I only need "make install" which is about 10 minutes.

On the web page, I say:
snibgo wrote:Edit magick/module.c and magick/static.c. In these source files, search for analyze, and add code for any other modules. This is only needed if we link the modules into a single library or binary. If we configure if with --with-modules=yes, we don't need to change these source files (I think).
My current practice is to use --with-modules=yes, so I don't modify magick/module.c and magick/static.c.
snibgo's IM pages: im.snibgo.com
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

Makes sense. Will give it a try sometime. BTW—is analyze.c legit or just a dummy module? It's included in your Makefile.am; however,
[i]snibgo[/i] wrote:The numbers are clearly wrong (the mean lightness isn't that low) but the point is that the analyze module does run.
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Processing for print

Post by snibgo »

I dunno. When I wrote that page, I thought the numbers were clearly wrong. But now they are not. 2e9 is a reasonable number for the mean, as 2^32 = 4e9. I'll remove the comment about it being wrong.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Processing for print

Post by fmw42 »

analyze.c was the original template example at http://www.imagemagick.org/script/archi ... hp#filters
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

snibgo, it takes my PC much longer to build IM :(. Current errors:

Code: Select all

  CC       filters/filters_hellow_la-hellow.lo
filters/hellow.c: In function 'hellowImage':
filters/hellow.c:12:5: warning: unused variable 'image_info' [-Wunused-variable]
     image_info;
     ^
  CCLD     filters/hellow.la
...

Code: Select all

make[1]: *** No rule to make target 'filters/onewhite.c', needed by 'filters/filters_onewhite_la-onewhite.lo'.  Stop.
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Processing for print

Post by snibgo »

afre wrote:warning: unused variable ...
Don't worry about warnings.
afre wrote:target 'filters/onewhite.c'
If you haven't got a .c file (probably because I forgot to include it), remove all references to that module from makefile.am.
snibgo's IM pages: im.snibgo.com
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

snibgo wrote:Don't worry about warnings.
Guess it wouldn't matter esp. since it's a hellow :lol:. BTW eqfish2rect.c onewhite.c segscanmerge.c sortlines.c don't exist. Any of them needed by your scripts? If not, I will remove their references, build and hope for the best 8).
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Processing for print

Post by snibgo »

eqfish2rect.c segscanmerge.c sortlines.c aren't used in my scripts. I'll remove them from makefile.am.

onewhite.c is used by eqLimit.bat and nLightest.bat.

I've uploaded a new copy of the zip file, containing onewhite.c, to http://snibgo.com/imforums/imsnibgoBats.zip
snibgo's IM pages: im.snibgo.com
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

Thanks. The makefile.am in your new zip file still contains entries for eqfish2rect.c segscanmerge.c sortlines.c but I'll remove them.
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Processing for print

Post by snibgo »

Yeah, I created that new version of the zip especially for you, because I (accidentally) hadn't published the source to onewhite.c. I have to think more carefully about the superfluous entries in makefile.am, but you can easily remove those for yourself.
snibgo's IM pages: im.snibgo.com
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

Which package does chklist.h come from?

Code: Select all

  CC       filters/filters_geodist_la-geodist.lo
filters/geodist.c:9:21: fatal error: chklist.h: No such file or directory
 #include "chklist.h"
                     ^
compilation terminated.
Makefile:9118: recipe for target 'filters/filters_geodist_la-geodist.lo' failed
make[1]: *** [filters/filters_geodist_la-geodist.lo] Error 1
Edit: found it here: do I place it in filters?
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Processing for print

Post by snibgo »

Yes, in filters.
snibgo's IM pages: im.snibgo.com
afre
Posts: 57
Joined: 2014-01-22T15:02:53-07:00
Authentication code: 6789

Re: Processing for print

Post by afre »

snibgo: Good news. It took me a while to get there but, after some attempts, this thread and a series of tweaks, eqLimit finally works for me :D.
ImageMagick 7.0.7-25 Q16 x64 2018-03-04 · Cipher DPC HDRI Modules OpenMP · Windows 7
Post Reply