andy's php projects
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Script and site usage:
All of the scripts on this site are provided free for non-commerical, personal or non-profit use. If you find these scripts useful to you, appreciate the free support, or are just an all round nice person, then why not donate a little dosh? If you wish to use any of these in a commercial system, please refer to the payment plan.


Direct/live preview window?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas
View previous topic :: View next topic  
Author Message
dtailed
Newbie


Joined: 28 Oct 2005
Posts: 6

PostPosted: Fri Oct 28, 2005 9:44 am    Post subject: Direct/live preview window? Reply with quote

Hi there!

Brilliant class, I love it in every way Wink
I'm using it for my picture galleries, and I've managed a way to create an iframed preview window, of the crop, by submitting the crop/interface-form in every function. Target of the form being my iframe.

This all works great, but it's just a bit too slow/inconvenient.
I've seen other sites using a live preview box through a DIV box, using javascript. Problem is, I'm not at all an experience javascript user Razz

So basically my question is;
Has anybody managed to create such a live preview DIV yet?
If so, care to share and help me apply it to my version?

Thanks in advance and thanks again andy for your great class!!!
Back to top
View user's profile Send private message
amnuts
Site Admin


Joined: 01 Sep 2002
Posts: 662
Location: East Sussex, England

PostPosted: Fri Oct 28, 2005 9:50 am    Post subject: Reply with quote

Hi! Welcome to the board and thanks for the comments. Smile

I haven't tried a 'live preview' myself, and to be honest I'm not exactly sure what you mean by that. Sure the crop area itself acts as a preview of what you're going to crop? Could you perhaps show an example of what you're tyring to do? If I'm guessing what you want then you need to look into the clipping properties of a div tag... or use the css property 'background-image' and update that when the cropping area is updated.

Andy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dtailed
Newbie


Joined: 28 Oct 2005
Posts: 6

PostPosted: Tue Nov 01, 2005 3:21 am    Post subject: Reply with quote

Thanks Andy,

Unfortunately the site where I saw this thing took down their demo Sad
What they had was a fixed preview/thumbnail size, and the crop area from the source image would be resized to fit the thumbnail size.
So it was a proportional cropping only, but the preview window (which was in a DIV indeed) would be updated while moving/resizing the crop window around.
So they used javascript to load a the image, and crop it to fit the size of their cropping area, instantly Razz

I hope this explains things a bit more, wish I could show you a demo though.
Anyways I figured somebody would have already done this, and if not I'll look into what you said above cuz I think that's about right.
I'm sure it'll take me a week at least though Razz

If anyone has experience with this kinda thing, please reply! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php.amnuts.com Forum Index -> Crop Canvas All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group