Hi,
Iam new to this forum.
I need to find the given TIFF image is in CMYK or RGB.
Though i have checked with Image::Magick, and used: -
my $img = new Image::Magick;
-
$img->Read("Sample.tif");
-
my ($type) = $img->Get("type");
-
print $type;
-
It displays "TrueColor" and "Palette" for RGB and "ColorSeparatio n" for CMYK
Is there any specific property or method to find an image which is RGB or CMYK?
I have found 'colorspace' property ($rgborcmyk = $img->Get('colorspac e'); ), which tells Grayscale pictures also as RGB.
I have one more doubt also, if iam running this for collection of TIFF images, is there any need to redeclare object every for new image,(my $img = new Image::Magick; ) b'cos iam getting properties of previous image if undeclared every time.
OS: Windows 2000
Perl Version: 5.8.3
Thanks in Advance,
Freedolen
1 3023 miller 1,089
Recognized Expert Top Contributor
Hi Freedolen,
Image::Magick is the only module that I'm familiar with for such processing. However, I've never tested for that particular attribute before, so I can't tell you if there is a more specific property.
I would definitely advise you to start with a fresh object for each image that you process. Unless efficiency is truly that large of a concern, there really isn't any other way to be absolutely sure that you won't be getting latent data. So I always start fresh when using any CPAN modules.
Not overly helpful, I know. But it's all the experience I have with Image::Magick specifically.
- Miller
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Robin Becker |
last post by:
Has anyone done transparency with PIL & TIFF? I'm using PIL to generate
a preview TIFF for embedding into an eps file and am being asked for the
TIFF to support transparency.
--
Robin Becker
|
by: brettk |
last post by:
Hello All,
Here's what I'm trying to do:
I need to connect to a pop3 server, download all messages, and copy all
of the attachments into a specific directory. The actual email message
is unimportant. Now, I've found plenty of examples that strip the
attachments from an email message, but most (if not all) of them take a
file parameter. My question is this:
|
by: Al Reid |
last post by:
Is it possible to display an image that is stored on the server as a TIFF image, on an ASP.Net page without the use of an add-in
viewer? If so, could someone tell me how to do it?
TIA
--
Al Reid
|
by: Shane Story |
last post by:
I can seem to get the dimensions of a frame in a multiframe tiff.
After selecting activeframe, the Width/Height is still really much larger
than the page's actual dimensions.
When I split a TIFF to several PNG files this causes a problem, becuase the
resulting image is (the page to the far left and a lot of black space
surrounding it and a filesize that is larger than needed.
Any ideas?
|
by: qysbc |
last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is
to have the server code open a binary stream, set the content type to
"image/tiff" and call Response.BinaryWrite. On the client machine, the file
type TIFF is associated with Kodak Imaging Preview. This app works on most
client machines. When you click on the link, Kodak Imaging Preview will open
the TIFF file on the client machine. However, on some machines, the...
| |
by: Stedak |
last post by:
I have the following class I use to save Tiff's. The problem I have with it
is that the final size of the images are very large. If we scan directly to a
file the final tiff may be 600-900 kb.s but with this code it is often
4000-5000 kb.s. What am I missing?
public class EmrTiff : IDisposable
{
private string fileName;
private ArrayList imageContainer = null;
|
by: Ben |
last post by:
Hi
We are looking for a component that offers that offers the below for Tiff
files:
Image clean-up (deskew, despeckle)
Printing capabilities from VB
The ability to add text to image, e.g. time / date
Nice to have:
|
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= |
last post by:
Hi,
Please help me to write a dll in C# , that will read each pages of a
tiff image from a file and a memory stream object ( need two ways) and
creatre a new tiff image object.The dll should return the combined tif image
object.
Thnks in advance
Rinu G P
|
by: GiJeet |
last post by:
Hello, we have an app that scans documents into TIFF format and we
need to transfer them over the internet. If anyone knows of a SDK we
can use that can compress TIFFs on the fly or even if it can compress
them so they take up less space on the server, would be appreciated.
Actually any info on handling tiff files programatically would be
appreciated as I know very little about tiffs.
TIA
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |