473,800 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making a 'warped' polaroid effect

Hi All

I know this might sound a strange subject post, but I'm doing a photography
web site and I'd like to make an effect whereby my pictures are a sort of
slanted, drawing pin to the wall Polaroid for each one. This may sound like
a quick PSPro or Photoshop job, but the problems are as follows:

1) A user with no artistic knowledge will be uploading standard rectangle
pictures to this web site on a regular basis.

2) I don't want to use Flash for this as I have zero experience with this
package at the moment.

My challenge is to get the standard uploaded pics to be read in (via ASP)
and then an effect (JS/DHTML??) is used to super impose this onto a warped,
pinned Polaroid background.

I hope this makes this sense and would really appreciate any help you can
give.

Thanks

Laphan


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 23 '05 #1
6 2556
Laphan wrote:

(snip)
1) A user with no artistic knowledge will be uploading standard rectangle
pictures to this web site on a regular basis.

2) I don't want to use Flash for this as I have zero experience with this
package at the moment.

My challenge is to get the standard uploaded pics to be read in (via ASP)
and then an effect (JS/DHTML??) is used to super impose this onto a warped,
pinned Polaroid background.


Rotating these images is not going to be easy. If you decide this is REALLY
necessary, then I suppose you could try running Photoshop on your server and
using ASP to interface with it. You might even find commercial server-side
scripts that will do this sort of thing.

Javascript is simply not up to the task.

My advice is forget the warping. Just display the images as they are, and
wrap them inside four (top, bottom, left & right) pre-prepared images to
represent the borders of the photo with a simple drop shadow.

Phil

--
Philip Ronan
ph***********@v irgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #2
VK
Only for Explorer users: you may try one of static filters:
http://msdn.microsoft.com/library/de...thor/filter/re
ference/reference.asp
Jul 23 '05 #3
On Sat, 16 Oct 2004 15:32:13 +0200, VK wrote:
http://msdn.microsoft.com/library/de...thor/filter/re
ference/reference.asp


A tip on those pesky long URL's.
Wrap 'em in '<' '>' and they don't break, e.g.,
<http://msdn.microsoft. com/library/default.asp?url =/workshop/author/filter/reference/reference.asp>

You have to use different methods for some news-clients,
but that should work for OE.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #4
and if you decide to do so, use the matrix filter. With a little
tweaking(and a little CSS for frame borders) you can get a nice skew that
will suit your idea if I understood it properly. I once posted the exact
code. If you can't find my post on Google, reply and I'll try to find it for
you. To date AIUI, filters have not been integrated into other browsers
something I would like to see. I write little browser apps that do several
photo processing routines using MS filters for sepia rotation skew(matrix)
glow dropShadow shadow ripple opacity and 3d. A whole world of javascript
driven graphics is kind of in limbo. As distasteful as I find MS, they got
this one right.
Hope this helps.
Jimbo
"VK" <sc**********@y ahoo.com> wrote in message
news:41******** *************** @news.freenet.d e...
Only for Explorer users: you may try one of static filters:
http://msdn.microsoft.com/library/de...thor/filter/re ference/reference.asp

Jul 23 '05 #5
Hiya Jimbo

Thanks for coming back to me.

Having trouble finding the code via Google, etc, so if you could post the
code that you are taking about it would be very much appreciated.

Rgds

Laphan

J. J. Cale <ph****@netvisi on.net.il> wrote in message
news:41******** @news.012.net.i l...
and if you decide to do so, use the matrix filter. With a little
tweaking(and a little CSS for frame borders) you can get a nice skew that
will suit your idea if I understood it properly. I once posted the exact
code. If you can't find my post on Google, reply and I'll try to find it for
you. To date AIUI, filters have not been integrated into other browsers
something I would like to see. I write little browser apps that do several
photo processing routines using MS filters for sepia rotation skew(matrix)
glow dropShadow shadow ripple opacity and 3d. A whole world of javascript
driven graphics is kind of in limbo. As distasteful as I find MS, they got
this one right.
Hope this helps.
Jimbo
"VK" <sc**********@y ahoo.com> wrote in message
news:41******** *************** @news.freenet.d e...
Only for Explorer users: you may try one of static filters:
http://msdn.microsoft.com/library/de...thor/filter/re ference/reference.asp



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 23 '05 #6
Hi Laphan
This might be double posted. I replied but the reply never showed up on
my newsreader so I'm posting again with an afterthought.He re is the post and
I hope it helps. I'll keep an eye on this thread and your name in case you
need more help.
Jimbo
I am not promoting Microsloth or any of it's products but...AFAIK IE5.5
alows images and text to be rotated skewed and resized through the filter
and style objects

<script type = "text/javascript">
// for resizing where var is any percentage. (no fractions or decimals for
safety)
currEl.style.zo om=var+'%';
// for rotation
var deg2radians = Math.PI * 2 / 360;
currEl.style.fi lter = "progid:DXImage Transform.Micro soft.Matrix(siz ingMethod
= 'auto expand')";
// I use onmousemove to trap event.clientX/Y to produce 'rotation' values
so the user can rotate or skew with a mouse drag
document.onmous eover = makeRotationPar am;
var lastX = 0, lastY = 0;
function makeRotationPar am() {
var x = event.clientX, y = event.clientY;
// compute differences in current and last mouse position according to your
needs and put it in place of the '?' in the following line
var aValue = ?;
lastX = x;
lastY = y;
rotateObj(aValu e);
}
function rotateObj(rotat ion) {
if (rotation >= 360) rotation = 0;
var rad = rotation * deg2radians ;
var costheta = Math.cos(rad);
var sintheta = Math.sin(rad);
currEl.filters. item(0).M11 = costheta;
currEl.filters. item(0).M12 = -sintheta;
currEl.filters. item(0).M21 = sintheta;
currEl.filters. item(0).M22 = costheta;
}
</script>
If you fiddle with the filter params (M11...) and/or the rad/sin/cos values
and/or the signs(+,-) you'll find the skew and more. I can't remember or
find the source of this code. Sorry! The above is a variation of a post in
this group some time ago.
<afterthought >
I think I mentioned that you can use the CSS borders prop/att to put frames
around your photos that will skew together with the photo. The example uses
'double' but there are others. (solid, groove, inset, outset, ridge, double,
IE6-> dotted, dashed).
examples
declare it inline with style obj is easiest but might not work in all MS
agents
<img src="a.jpg" style="border:3 px blue double;" ...etc>

give the image an id and add it to your style sheet
<img ID="my.jpg" src="a.jpg" ...etc>
<style type="text/css">
#myJpg {border:3px blue double;}
</style>

script it (notice that this example uses the name attribute and the above
uses the id)
<img NAME="my.jpg" src="a.jpg" ...etc>
<script type="text/javascript">
// with name of img
document.images['myJpg'].style.border = "3px blue double" ; // safer
// with id of img *some versions of IE might want the reference from the
document.all collection or document.getEel ementById()
myJpg .style.border = "3px blue double" ;
</script>
Finally watch out for word wrap on my comments if you copy any of this
directly into your page. I'll also check my archive for an example if you
don't get the result you want.
Jimbo

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1450
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild, AppendChild, making width grow? Hi,
5
562
by: Daniel Nichols | last post by:
I've noticed that in a C module (.c, .h file combination) that if you create a function's definition before it is used in other functions than a declaration is not necessary. I believe if the compiler can find the definition of the function prior to encountering the use of the function it will generate the prototype itself. I don't currently use this feature, I explicitly create declarations for all functions in a header file. However, I...
4
5885
by: Mystery Man | last post by:
I want to deliberately make a label (and perhaps a button) flash to alert the user that something very serious has happened. Any ideas on how to do this?
4
2020
by: z. f. | last post by:
Hi, i stated that this is an advanced question because i have a post from few days ago that i received answers to with suggestions that looked good but did not work, so please if you post a reply make sure your suggestion actually works. like a <asp:button> control have a CausesValidation property that allows it to POST a button command event to the server without causing the page to make validation on form inputs, i need to get the...
90
4424
by: Ben Finney | last post by:
Howdy all, How can a (user-defined) class ensure that its instances are immutable, like an int or a tuple, without inheriting from those types? What caveats should be observed in making immutable instances? -- \ "Love is the triumph of imagination over intelligence." -- |
37
2793
by: yogpjosh | last post by:
Hello All, I was asked a question in an interview.. Its related to dynamically allocated and deallocated memory. eg. //start char * p = new char; ...
2
1271
by: **Developer** | last post by:
Stumbling through I find both of the following appear to work the same. I'm guessing there is a difference that I'm just not aware of. Can someone enlighten me? Thanks
4
3465
by: ShieldsJared | last post by:
Im looking for help making a good GUI out of pure images. I would like to embed the common controls and such, but I want to make a nice looking GUI, similar to that of, say Windows Media Player. I'm not sure how to make an image "clickable", nor do I know how to make rollovers and such. Also looking for pointers on making the images blend well when sitting on top of each other. Any ideas? Thanks for your input!
3
3291
by: Chuckhriczko | last post by:
Hey all, forgive the improper formatting as I am posting this from my blackberry at work. Anyway, I am developing a website for a client. He recently informed me of features he wants. These can easily be done in flash but I am a big anti flash guy for multiple reasons. Plus I don't know flash. I know I can do certain things in javascript to imitate flash but one thing puzzles me. How could I apply a glowing effect to an element, a div for...
0
9551
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,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
jinu1996
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...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10035
tracyyun
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...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4149
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
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.