Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-03-26 09:58:05

mlarino
Member
Registered: 2007-06-29
Posts: 367

ideas for image resize and watermark in one

Hi,
I have a little problem i need help with.

I found two plugins, one that resizes images lam_dynamic_image
and one that creates a watermark using a PHP script link

The thing is, my client need watermarks on the images, and he also needs to resize those images, and he has no knowledge of photoshop to do so, so I need to use those two at the same time.

Does someone have an idea on how I can do it?
thanks!!!

Offline

#2 2010-03-26 10:29:38

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: ideas for image resize and watermark in one

Try asking Eric about the next release of his great ebl_image_edit.
Resizing is out of the box and he talked about watermarking some time ago.

Last edited by candyman (2010-03-26 10:32:15)

Offline

#3 2010-03-29 09:06:13

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: ideas for image resize and watermark in one

take a look at this txp tip
then take a look at this mod of the script used

maybe that works?


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#4 2010-03-29 09:32:56

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,720
Website GitHub

Re: ideas for image resize and watermark in one

I’ve been meaning to write smd_watermark for years and never get round to it. I planned for it to use a similar technique to the one kemie posted, along with options for a few more mechanisms, including on-the-fly watermarking instead of manually during the upload process. You could control which images were affected by which watermarking process via their category, and I guess I could expand that to id or name matching now I’ve learned a thing or two.

I had a prototype working on my old web site (before I TXPised it) and intended to port it to TXP, because it had some nice features such as text watermarking, image watermarking (or both), choice of opacity, automatic selection of watermark based on the image content so the mark could always be seen, intelligent watermark scaling for images of different sizes, etc etc.

Shame I never made time for it. Maybe one day… in the meantime, the tip kemie posted would more than likely work.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2010-03-29 10:00:22

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: ideas for image resize and watermark in one

Thanks Guys!
I think I got something working with those links you posted, althought that Php Script cant rezise only by giving a width I have to give a heigth also… and doesnt mantain the original ratio… I think…

Bloke! you need to make something like that! :)

<smd_watermark opacity=“40” watermark=“text” label=“watermark text” >
or
<smd_watermark opacity=“40” watermark=“image” position=“top-left” >

I am not a fan of on the fly watermarking, preffer the watermarking on upload, and being able to automaticly create 2 different sized thumbnails.

<txp:thumbnail version=“1”/>
<txp:thumbnail version=“2”/>

Thanks for your help!!!

Last edited by mlarino (2010-03-29 10:01:42)

Offline

Board footer

Powered by FluxBB