Jump to content

image through javascript


ngreenwood6

Recommended Posts

Ok so this is a little different of a question but hopefully someone out there can help me find the answer. I am basically creating a really cool way to manipulate images (slicing them into pieces). That part is working fine and dandy. I am doing this to create some really nice effects for transitioning images (think flash but with javascript). However I have run into a bit of a snag. When I am breaking the images into pieces I am putting each of the image's sources as background images on divs and then setting there left positions and top positions. One thing that I didnt realize is that in doing this the images are not resizable because they are using the original images size and there is no css property to change the background size (css3 there is but i need to make it css2 compliant). So I was thinking about working with the image data (<img src="data:image/jpg;base64,base64encoded_string_here" />) and changing the size of the image through that if it is possible. If anyone knows how to do change the size or can come up with another solution that would be very helpful.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.