[Zope] Need help with ImageMagick or PIL with CMFPhoto for ph oto resize

Meilicke, Scott scott.meilicke at intp.com
Thu Aug 14 08:39:10 EDT 2003


Hmm, that I don't know.  I am cc'ing the list - maybe someone else does.

I have always used Photo 1.2.3, and CMFPhoto only just to 'have a look see'.
When I uploaded a bmp, Photo 1.2.3 would not resize it, perhaps the same is
true of CMFPhoto.  Photo would resize a jpg.  Seems like the thing to do is
install jpg support for imagemagick.  Perhaps bypass the Redhat version and
install imagemagick from source?  

Scott

-----Original Message-----
From: Jim Barbara [mailto:jbarbara11 at yahoo.com]
Sent: Thursday, August 14, 2003 6:36 AM
To: Meilicke, Scott
Subject: RE: [Zope] Need help with ImageMagick or PIL with CMFPhoto for
ph oto resize


I found out that it's just the jpg support that is not
installed....so, I am able to do the convert with a
bmp file.  Now then, my next question/issue that you
might be able to help me is with Zope and Plone.

Since I can use the command line "convert -resize" a
bmp file, I would figure that I can go to my Plone
site and add a bmp file as a Photo object and then
view the different sizes.  However, I can only see the
Photo (or bmp) in its original size.  This tells me
that Plone/Zope/Python does not "know" to use
ImageMagick as the engine to use for resizing.  Is
there another tweak I must do to get my site to use
ImageMagick?

--Jim
--- "Meilicke, Scott" <scott.meilicke at intp.com> wrote:
> sounds like imagemagick isn't installed correctly...
>  I can't help you
> there, unfortunately.
> 
> Scott
> 
> -----Original Message-----
> From: Jim Barbara [mailto:jbarbara11 at yahoo.com]
> Sent: Wednesday, August 13, 2003 11:16 AM
> To: Meilicke, Scott
> Subject: RE: [Zope] Need help with ImageMagick or
> PIL with CMFPhoto for
> ph oto resize
> 
> 
> Yes, I did try the convert after copying a jpg to my
> tmp folder and got the following results:
> 
> [root at localhost tmp]# convert  Snowmen_Rabbit.jpg 
> Snowmen_Rabbit.gif
> convert: No decode delegate for this image format
> (Snowmen_Rabbit.jpg).
> 
> --Jim
> --- "Meilicke, Scott" <scott.meilicke at intp.com>
> wrote:
> > Have you tried ImageMagick from the command line? 
> > Something like
> > 
> > convert -g 500x500 originalimage.jpg
> > 
> > This will resize originalimage.jpg to be 500 px
> max
> > high or wide.  It will
> > maintain the aspect ratio. 
> > 
> > If that works, then zope isn't seeing
> imagemagick...
> >  I'm not enough of a
> > linux person to tell you want to do in this case.
> > 
> > Scott
> > 
> > -----Original Message-----
> > From: Jim Barbara [mailto:jbarbara11 at yahoo.com]
> > Sent: Wednesday, August 13, 2003 10:15 AM
> > To: zope at zope.org
> > Subject: [Zope] Need help with ImageMagick or PIL
> > with CMFPhoto for
> > photo resize
> > 
> > 
> > I am using:
> > 
> > Zope 2.6.1 
> > Plone 1.0.1
> > CMF 1.3
> > 
> > I can add a CMFPhotoAlbum as well as a CMFPhoto on
> > my
> > Plone site.  I want to be 
> > able to view the photo sized differently than the
> > Original Size.  I tried to 
> > install ImageMagick using the rpm for Redhat 9
> > (i386).
> >  Since it asked for a 
> > lot of XFree86 modules, I used the -nodeps option
> > and
> > it seemed to install just 
> > fine.  However, I still cannot resize the photos. 
> I
> > am a newbie but I am 
> > learning.  Could you please help me?  
> > 
> > Thanks,
> > Jim Barbara
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> > _______________________________________________
> > Zope maillist  -  Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> > 
> http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> > The information contained in this email message
> may
> > be privileged and is
> > confidential information intended only for the use
> > of the recipient or any
> > employee or agent responsible for delivering it to
> > the intended recipient.
> > Any unauthorized use, distribution or copying of
> > this information is
> > strictly prohibited and may be unlawful.  If you
> > have received this
> > communication in error, please notify the sender
> > immediately and destroy the
> > original message and all attachments from your
> > electronic files.
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> The information contained in this email message may
> be privileged and is
> confidential information intended only for the use
> of the recipient or any
> employee or agent responsible for delivering it to
> the intended recipient.
> Any unauthorized use, distribution or copying of
> this information is
> strictly prohibited and may be unlawful.  If you
> have received this
> communication in error, please notify the sender
> immediately and destroy the
> original message and all attachments from your
> electronic files.
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
The information contained in this email message may be privileged and is
confidential information intended only for the use of the recipient or any
employee or agent responsible for delivering it to the intended recipient.
Any unauthorized use, distribution or copying of this information is
strictly prohibited and may be unlawful.  If you have received this
communication in error, please notify the sender immediately and destroy the
original message and all attachments from your electronic files.



More information about the Zope mailing list