Javascript :: Resizing / Cropping / Rotating And Adding Text To Images In Rails

Apr 20, 2011

I need to include a feature on an app I'm building that allows the user to upload an image and manipulate it in various ways including adding text. This is basically a way to design custom printed merchandise as is already found on many websites and will be overlayed on a background image of whatever is being customised e.g. T-Shirt.The basic requirements are: resize, crop and rotate image against background. Overlay and change position/colour/style of text against image. Preview the final design against the background.

I know that flash is possibly the best solution but I was really hoping to avoid it and use Jquery instead. While there is plenty out there for resizing and cropping images with javascript there doesn't seem to be anything that fits my needs.

View 3 Replies


Similar Posts:


Ruby On Rails :: Uploading Images From Flex To Rails Using Paperclip

Feb 8, 2010

I'm looking for a way to upload images that were created in my flex app to rails. I've tried to use paperclip, but it don't seem to work. I've got this tutorial here: [URL] The problem is, that they are using a FileReference to browse for files on the clients computer. They call the .upload(...) function and send the data to the upload controller. But I'm using a URLLoader to upload a image, that is modified in my Flex-App. First, here is the code from the tutorial:

[Code]...

View 1 Replies

Professional :: Adding Images In Rotating Banner?

Mar 18, 2012

What's the quickest way to add/replace an image in a rotating banner using CS5.5?

View 14 Replies

Flex :: Advanced Image Cropping And Image Resizing?

Apr 26, 2011

I have created a image cropping tool in flex using core copyPixel method.croppedBitmapData.copyPixels(croppedBitmapData, clipCan, new Point(0, 0));I have to crope area of dementions 20*20 and show this cropped area in an image of demention 250*350. Every thing going well.My problem is image distortion.Even i am using this method for smoothing image contents on complete.

private function smoothImage(event:Event):void
{
var bitmap: Bitmap = ((event.target as Image).content as Bitmap);

[code]....

View 2 Replies

ActionScript 2.0 :: Dynamic Text Resizing Images

May 11, 2007

FYI: I'm following the Flash Blogger tutorials listed on [URL] with Flash 8. I've noticed that everything works wonderfully as far as bringing the blog content into the dynamic text field; however, my only problem at the moment is Blogger will automatically resize my images, so it doesn't mess up the current template in html, but of course, Flash does not (out of the box).

I need a way to define the width & height of the images in the text field to fit inside the dynamic text field they're in. As far as I can tell, the tutorials listed on that site use an alternate method and don't actually resize them. Lastly, I thought about using CSS to adjust the img size, but from what I gather there are very few items at my disposal.

View 2 Replies

ActionScript 1/2 :: Adding Text To Javascript Pop Up Window

Mar 21, 2009

I am opening a pop up windows with javascript from my Flash movie that works fine. Each opening window has a video in it. Now what I'd like to do is add text under/above the quick time movie inside the pop up windows. I'm not very savvy with programming and I've tried to look all over but can't find a simple direct answer, Here's the code I have inside the Flash movie:

[Code]....

View 5 Replies

ActionScript 3.0 :: Adding Images And Text Via Xml?

Jun 9, 2010

I have downloaded some templates and im working out how to do several things. One part of the site picks up text from an XML doc and builds sperate text boxes for each item on the XML list. Also built are the scrollpane, scrollbar and generates the text style/size etc. How would i change the actionscript so it adds an image to the text it picks up from the XML file?

var flashmo_item_list = new Array();var flashmo_item_group:MovieClip = new MovieClip();
var item_width:Number = flashmo_mask.width;var item_height:Number = 0;var

[Code].....

View 2 Replies

ActionScript 3.0 :: Adding Text And Images Dynamically?

Jan 16, 2011

I was asked to create a flash product configurator:

1) true 3D visualization of the product (not perspective)

2) customization by the user to add uploaded images and texts to the product and styling text as he wants applying font e color. I have doubts about adding text and images to a 3D object and render them on the fly.

3) and optionally, save that configuration for a successive editing or to propose last saved model to other users. For this I thought to save the 3D clip as a file and then reload it.

Is this achievable flash AS3? If yes, can I use some 3D flash library like Sandy 3D?

View 1 Replies

ActionScript 3.0 :: Adding Text To ObjectDisplay Images XML?

Jul 15, 2009

I have a rotataing menu that is driven by xml images. the images all load in, but I would like to have a little text info at the left side of each image as it rotates.I understand that you create dynamic text fields, which I have done in my fla that then somehow link you to the xml where the text info is read from, but how the AS3 script goes for this I do not know?I would like the text to be fixed with the image and rotate by the side of images and not pop up like a tooltipI am working with example files I received from soulwire, which contain displayObjects so I think it has to be done like that???I am new to AS3 so I don't really understand how it works, would anyone beable to direct me to somelinks on how to do this or be so kind as to take a look the example files I have uploaded.

View 7 Replies

Ruby On Rails :: Write XML File From A Flex Application Back To A Rails Server?

Feb 2, 2010

I have a XML-file, which I want to send to a rails server. To do so I use the following code:

<mx:HTTPService id="dataService"
result="resultHandler(event)"
resultFormat="e4x"/>

[code].....

View 1 Replies

Flash :: Ruby On Rails - Not Surviving A Redirect In Facebook On A Rails Application

Feb 6, 2010

I have the following two action methods:

[Code]...

The application is used through Facebook. I click the button and the flash contains the notice while create is being executed, but after that it's empty again. It doesn't survive a redirect.

View 1 Replies

Ruby On Rails :: Access Resources Login Protected With Rails And Flex?

Feb 27, 2010

i'm trying to figure out how i can handle login protected actions in RoR (Ruby on Rails) with Flex without using weborm or rubyamf remoteobject.I'm in the situation where i have to fill a datagrid with results of an HTTPService request after i log in correctly into my application. Can anyone suggest me the way to accomplish that?

View 1 Replies

Ruby On Rails :: Exception Upload File From Flex To Rails (using Paperclip)?

Jun 29, 2010

I'm trying to upload a Dynamically generated file from Flex (PNG image) to Ruby on Rails Server back end using the following code (from Flex on Rails book):

[Code]...

View 1 Replies

Ruby On Rails :: Flex - Login Using Rails Devise And Adobe AMF3?

Sep 20, 2010

I am trying to login in to my Rails app through an adobe flex application that uses Devise but cannot figure out how to map the AMF request to Devise::SessionsController#New. I tried the following

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="700" minHeight="600">

[code].....

View 2 Replies

Ruby On Rails :: Controlling Parameters Passed In Rubyamf (rails + Flex)?

Feb 2, 2011

How do I control what parameters are passed in a RemoteObject method? I noticed that when I directly download and run the code from this site, saving an object results in the following parameter set being passed back:

Processing PostsController#save (for 127.0.0.1 at 2011-02-01 23:34:55) [POST] Parameters: {0=>{"post"=>#<Post id: nil, title: "a", body: "b", created_at: nil, updated_at: nil>}, "post"=>#<Post id: nil, title: "a", body: "b", created_at: nil, updated_at: nil>}

[Code]...

View 1 Replies

Ruby On Rails :: Rails 3 : Call Create Action Form Flex

Sep 28, 2011

I have a rails app that records a video from the webcam. After the video file is saved on the flex server, I need to create a record on the database calling the create action on my rails app from Flex. How can I achieve this? I need a url with params to be called. I think the authenticity_token is necessary to post data.

View 1 Replies

ActionScript 3.0 :: Adding Text Info To ObjectDisplay Images XML

Jul 15, 2009

I have a rotataing menu that is driven by xml images. the images all load in, but I would like to have a little text info at the left side of each image as it rotates.I understand that you create dynamic text fields, which I have done in my fla that then somehow link you to the xml where the text info is read from, but how the AS3 script goes for this I do not know?I would like the text to be fixed with the image and rotate by the side of images and not pop up like a tooltip.I am working with example files I received from soulwire, which contain displayObjects so I think it has to be done like that?I am new to AS3 so I don't really understand how it works, would anyone beable to direct me to somelinks on how to do this or be so kind as to take a look the example files I have uploaded.URL...

View 3 Replies

Ruby On Rails :: Implementing Drag Calendar With Flex And Rails

Jul 12, 2009

I want to implement an application in Flex/Rails in Background as I know these two languages but I'm fairly beginner with Flex and Intermediate-to-expert with Rails. My application will display a calendar like object by which there are say 5-day week or 7-day week or a month (30-days) and in each day there will be some data such as appointments or such. I want users to be able to drag left or right to get more days after or before the displayed week for example and I want the boxes to be filled with proper appointments data.

What is the best way to implmenet this in your opinion, mainly from Flex point of view? Any architectural tips from the Rails side?

View 3 Replies

Ruby On Rails :: Send Data To A Rails Controller From Flex?

Dec 4, 2009

I am trying to use an HTTPService to send a string of text to a controller action. How do I access it within the controller?

View 2 Replies

Ruby On Rails :: Integrate A Flex Application Into A Rails Environment?

Feb 1, 2010

I have a webpage based on ruby on rails. For one task I need some more complex user interface which I plan to do with a flex programm. The question is, how I can start the a new window with my flex programm and hand over the right url where the flex app can load its data in XML format...

View 1 Replies

Ruby On Rails :: Embedding A Flash File (swf) In A Rails Application?

Jul 20, 2011

How can we include (nicely) a swf file in a Rails application?By the way, I tried the swf_fu plugin but it didn't work. When I call my swf file located in the swfs directory, it tells me that the method is not found:

View 1 Replies

Ruby On Rails :: Understand Rails Authentication W/r/t Assets Like Swfs

May 21, 2009

I am a rails noob. I am having a problem conceptualizing how assets work in an authenticated system. All of the tutorials I've seen so far talk about putting your swfs in the public folder and embedding them in your view. However, the swf I'm using is a flex gui that should only be used by users logged-in through restful-authentication. I imagine that putting the gui into the public folder would be defeating the whole purpose of having an authentication system. So what is everybody doing to restrict access to this kind static content?

View 1 Replies

Ruby On Rails 3 :: Embed A Flash File In A Rails Project?

Mar 24, 2012

I am trying to embed a flash file onto the homepage of my Ruby application. The homepage is in /app/view/home, and the flash file is in the projects /public/flash/myflash.swf.When I load the home page, I don't see anything, although the text is bumped below a square of the proper size I defined the file as.The code I am using to try and load the file is

<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="346" height="383" id="Blox" align="middle">
<param name="movie" value="/flash/Blox.swf" />
<param name="quality" value="high" />

[code]....

I am thinking that either I am calling the file wrong by using value=/flash/Blox.swf, or that I am storing my flash file in the wrong place period. How can I get my flash file to load?

View 1 Replies

Ruby On Rails :: Recording Audio Through RTMP/Rails?

Apr 26, 2010

I am in the process of building a rails/flex application which requires audio to be recorded and then stored in our amazon s3 account. I have found no alternative to using some form of RTMP server for recording audio through flash, but our hosting environment will not allow us to install anything like FMS, Red5, etc.

Is there any existing Ruby/Rails RTMP solution that will allow audio recording? If not, is it possible for Rails to at least intercept the RTMP stream and then I can hope to reference red5's source or something for parsing the data (long shot, I know)?The other alternative I can think of is hosting a red5 server on another host and communicating with our rails app once the saving/uploading is done, which is not preferred.

View 2 Replies

Ruby On Rails :: Flex App Embedded In Rails App W/ Authentication

Dec 20, 2010

We have a Rails 3 app using session-based authentication (modified acts_as_authenticated), and a Flex app that needs to be embedded in an html.erb template. The Flex app needs to access routes that have a before_filter set to check if the user is logged in. When interacting with the HTML site, this causes the user to be redirected to a login page, then sets a Rails session property (tied to a cookie) to record that the user is logged in when making future requests.The Flex app needs to access XML that's generated by Rails (behind the before_filter) and I don't want to force the user to log in twice -- what should I be passing as a flash parameter to the Flex app so that it can present as "already logged in" if that session exists (ie, the user has logged in via the HTML interface)?

View 1 Replies

Ruby On Rails :: Rails 3.1 - Embedding Flash.swf Files?

Sep 25, 2011

Having problems embedding my .swf file in rails 3.1. In past versions of rails I'd use swfobject and simply do:

<div id="swfbox">you don't have flash</div>
<script type ="text/javascript">
swfobject.embedSWF("swf/AudioRecorder.swf", "swfbox", "400", "400", "10.0.0", "");

[code].....

View 1 Replies

Ruby On Rails :: Generating Controllers For Rails In Terminal?

Feb 19, 2012

I am trying to create a rails controller in ubuntu terminal with "rails generate controller test_it"

But I keep getting a screwy error.

[Code]...

View 1 Replies

ActionScript 1/2 :: XML Images - Resizing The Images To Fit The Image Holders?

Jun 25, 2009

I've tried a lot of online tutorials for photogalleries but can't find what I'm looking for.I need to bring in my images from xml so that they will fill the thumbnails (if the width of the image is greater than its height then it will scale to the height of the thumbnail) and center within that thumbnail.
 
Then, when I click on a thumbnail, I need that image to fill the space allowed for the large photo (this time if the width of the image is greater than its height then it will scale to the width of the photo space)and center within that space again.In terms if centering the image,I have created movie clips for both the thumbnail and the large photo space (let's call them "imageHolder")and within those movieclips there is an empty movie clip called "image" which is aligned to the centre of "imageHolder". I thought that this would work:

imageHolder.image._x = 0-(imageHolder.image._width/2);
imageHolder.image._y = 0-(imageHolder.image._height/2);
But no such luck.
 
As for resizing the images to fit the image holders,

View 6 Replies

Ruby On Rails :: Cairngorm With The Rails Backend?

Jun 20, 2009

I mean, the mvc for cairngorm and the one in rails don't overlap their functionalities? I'm not sure I understand the need for cairngorm with the rails backend..

View 2 Replies

Ruby On Rails :: How To Parse XML From Rails In Flex

Jul 27, 2010

I want to upload a file(photo) from Flex to Rails and then send a response back to the server in XML (contains photo URL and ID). I'm sending from my Rails server some XML as follows:[code]it doesn't seem to parse XML properly. I have used similar code before with URLLoader and it worked.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved