Search found 13 matches

by yazinsai
2012-10-16T05:37:47-07:00
Forum: Users
Topic: How do I determine if a pdf is raster or vector
Replies: 6
Views: 18511

Re: How do I determine if a pdf is raster or vector

This worked perfectly. I used the following grep command to determine if a raster object existed:

Code: Select all

grep -c -i "/image" thisfile.pdf
whugemann, you ROCK!
by yazinsai
2012-10-01T19:33:45-07:00
Forum: Users
Topic: How do I determine if a pdf is raster or vector
Replies: 6
Views: 18511

Re: How do I determine if a pdf is raster or vector

whugemann wrote:A quick check by myself offered "image/width" as a possible string to search for.
That's brilliant! Makes for a lovely hack. I'll try with a few pdf files and see what works best; thanks for the lead!! I'll update this when I find something out.
by yazinsai
2012-10-01T09:51:43-07:00
Forum: Users
Topic: How do I determine if a pdf is raster or vector
Replies: 6
Views: 18511

Re: How do I determine if a pdf is raster or vector

whugemann wrote:As PDF is pure ASCII text, you could use a simple text processor such as SED or even the operating system's text filter commands to perform this job
Could you please suggest how this might work? I'm not so good with SED and i'm not sure what to search for.

Thanks a ton!
Yazin
by yazinsai
2012-09-30T10:27:14-07:00
Forum: Users
Topic: How do I determine if a pdf is raster or vector
Replies: 6
Views: 18511

Re: How do I determine if a pdf is raster or vector

Thanks - unfortunately, i'm running off a shared host and there's no way they are going to allow me to install Xpdf. I'm sure the pros have some way of figuring this out.. === To give you some context on the application, I'm running a website where users can upload their files and we print them on ...
by yazinsai
2012-09-30T07:28:26-07:00
Forum: Users
Topic: How do I determine if a pdf is raster or vector
Replies: 6
Views: 18511

How do I determine if a pdf is raster or vector

Hello,

I'd like to know if there's a way to determine if a PDF file is raster or vector, using ImageMagick. I've spent the better part of half an hour looking for this and could not find the solution.

To clarify, I mean how do I determine if there are any raster elements in a PDF file.

Thanks!
by yazinsai
2012-09-19T05:32:47-07:00
Forum: Users
Topic: Delegate library support not built-in
Replies: 2
Views: 13481

Re: Delegate library support not built-in

No, I get the following output:
DELEGATES bzlib fontconfig freetype jpeg jng png rsvg tiff x11 xml wmf zlib
So LCMS is missing then yeah?
by yazinsai
2012-09-18T04:23:31-07:00
Forum: Users
Topic: Delegate library support not built-in
Replies: 2
Views: 13481

Delegate library support not built-in

Hello, I'm using ImageMagick on a shared version of TMDhosting. I am using a script that obtains the C,M,Y and K channel means from an RGB image. The command I am using to convert the image is shown below: convert -verbose "source.jpg" -profile "sRGB_v4_ICC_preference.icc" -profile ...
by yazinsai
2012-05-17T12:25:35-07:00
Forum: Users
Topic: Retrieving the individual Image Channel Statistics
Replies: 10
Views: 18794

Re: Retrieving the individual Image Channel Statistics

I knew I probably missed it; thanks again!
fmw42 wrote:
You Sir are amazing! I didn't find the mean.r/g/b references in the -format page! THANK YOU!!
You have to do that via fx escapes. see
http://www.imagemagick.org/Usage/transform/#fx_escapes
and
http://www.imagemagick.org/script/fx.php
by yazinsai
2012-05-17T01:04:08-07:00
Forum: Users
Topic: Retrieving the individual Image Channel Statistics
Replies: 10
Views: 18794

Re: Retrieving the individual Image Channel Statistics

Thanks Anthony! I did find a guide that explains how SED works in detail, but need to get around to reading that sometime. Really appreciate your help.. Hey is there any way that I can get the colorspace in the same command so it's more efficient than running "identify" twice? Thanks! identify ...
by yazinsai
2012-05-17T01:02:33-07:00
Forum: Users
Topic: Retrieving the individual Image Channel Statistics
Replies: 10
Views: 18794

Re: Retrieving the individual Image Channel Statistics

You Sir are amazing! I didn't find the mean.r/g/b references in the -format page! THANK YOU!! why not just do: convert rose: -format "%[colorspace]\n%[fx:mean.r]\n%[fx:mean.g]\n%[fx:mean.b]\n%[fx:mean]" info: sRGB 0.57142 0.35004 0.315563 0.412341 P.S. when I do identify -verbose rose: | \ sed -n 's ...
by yazinsai
2012-05-15T00:20:54-07:00
Forum: Users
Topic: Retrieving the individual Image Channel Statistics
Replies: 10
Views: 18794

Re: Retrieving the individual Image Channel Statistics

Hey is there any way that I can get the colorspace in the same command so it's more efficient than running "identify" twice? Thanks! P.S: Nice quote ;) Mine's not fitting for a forum where questions are meant to be asked. Got it changed :) The "sed" command can search for and extract the desired ...
by yazinsai
2012-05-14T23:16:51-07:00
Forum: Users
Topic: Retrieving the individual Image Channel Statistics
Replies: 10
Views: 18794

Re: Retrieving the individual Image Channel Statistics

Works! Thanks Anthony
by yazinsai
2012-05-14T21:52:59-07:00
Forum: Users
Topic: Retrieving the individual Image Channel Statistics
Replies: 10
Views: 18794

Retrieving the individual Image Channel Statistics

Hi, I'm developing a website that uploads an image and reads the colorspace and Mean for each of the R,G and B channels. I've been able to read the colorspace using identify -format %[colorspace] rose.jpg But I'm stuck in trying to figure out how to read the Mean for each Channel.. The output for ...