Using AS to Create Dynamic Images
Hi all... hoping someone here can help me out.
I'm working on
this site for a
client, and they're going to have a lot of inventory for me to
add to it.
If you enter the site and then click on "Sofas" on the left
menu you'll see the layout I'm doing.
I've uploaded a file of just the "sofas" section for
you to download
here.
What I'm wondering is if there's an easy way to make just one
movie clip called "thumbnail" and one called "big". Then, depending
on the section the person goes to they would create all the movie
clips and let the Loader component know what image to load in based
on the section.
Then I could just upload the jpgs to the server and not have
to make 300+ movieclips for every one of them.
Hope this makes sense.
Oh yeah... you'll notice I'm using Blogger to get the content
onto each sofa... but that may not matter one way or another.
Hopefully not. If there's a better way to populate the text let me
know.
Thanks!
Hi all... hoping someone here can help me out.
I'm working on
this site for a
client, and they're going to have a lot of inventory for me to
add to it.
If you enter the site and then click on "Sofas" on the left
menu you'll see the layout I'm doing.
I've uploaded a file of just the "sofas" section for
you to download
here.
What I'm wondering is if there's an easy way to make just one
movie clip called "thumbnail" and one called "big". Then, depending
on the section the person goes to they would create all the movie
clips and let the Loader component know what image to load in based
on the section.
Then I could just upload the jpgs to the server and not have
to make 300+ movieclips for every one of them.
Hope this makes sense.
Oh yeah... you'll notice I'm using Blogger to get the content
onto each sofa... but that may not matter one way or another.
Hopefully not. If there's a better way to populate the text let me
know.
Thanks!
Similar Messages
-
How to create dynamic images in java servlets?
I want to create dynamic images in java servlet. Can servlet create dynamic images that based on the input data files? The results can be displayed in GIF, JPG..format? how can this be done? any example in internet?
What OS do I need to install and what other requirements needed if i want to build up a servlet server?
Thanks a lot!Also worth having a look at SVG http://www.w3.org/TR/2001/REC-SVG-20010904/, you can get a viewer at http://www.adobe.com/svg/ or you can use Batik http://xml.apache.org/batik/index.html to convert SVG to other formats such as JPEG.
HH -
Create dynamic image, dump on server someplace and reference in JSP?
I was thinking about creating dynamic images and referencing them on a JSP
(creating them is ok). I'm sure this is a pretty standard thing, but I
don't know how to do it. Any ideas? I tried doing a search on the BEA
support site (nice changes :>) but nothing very accurate came up.
Thanks.
Assign an ID (e.g. 1234) to the uploaded file. You should abstract the store
so that it will work on the file system or in the database.
The JSP will include an image ref to that ID, e.g.
http://www.myco.com/myapp/imageservlet?id=1234
The image servlet will retrieve and stream the image. It has to set content
type etc. You should also verify that the current user has access to the
requested image if security/privacy is an issue.
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com/coherence.jsp
Tangosol Coherence: Clustered Replicated Cache for Weblogic
"PHenry" <[RemoveBeforeSending][email protected]> wrote in message
news:[email protected]...
> Howdy. I just thought of something. If the img is coming across via the
> stream, how do you reference it in the html/jsp file? I just thought
about
> that now as I was getting a cup of coffee. (I need to cut back! :>)
>
> Thanks.
>
>
>
>
> "Cameron Purdy" <[email protected]> wrote in message
> news:[email protected]...
> > If you write it to a file, you are writing it to an OutputStream, right?
> >
> > Instead, just write it to the OutputStream that comes from the
HttpRequest
> > object. For example:
> >
> > <img src="http://www.mysite.com/myapp/my.jsp?name=whatever">
> >
> > That would hit your JSP (it would be better to use a Servlet in this
case
> > though), and you would stream back the image.
> >
> > Peace,
> >
> > Cameron Purdy
> > Tangosol, Inc.
> > http://www.tangosol.com/coherence.jsp
> > Tangosol Coherence: Clustered Replicated Cache for Weblogic
> >
> >
> > "PHenry" <[RemoveBeforeSending][email protected]> wrote in message
> > news:[email protected]...
> > > Interesting. I'm still a bit new to this stuff. Do you have/know
where
> > to
> > > find some examples?
> >
> >
> >
>
>
-
Question about Using BufferedImage to create jpeg image
I was puzzled by a problem about using of class BufferedImage. I want to dynamicly create a jpeg image with bufferedimage, the step is as follows:
1.create a new bufferedImage object:
BufferedImage image = new BufferedImage((int)imageWidth, (int)imageHeight, BufferedImage.TYPE_BYTE_BINARY);
2.get the Graphics object from image:
Graphics graphics = image.getGraphics();
3.then draw string and any other graphics with graphics
4.create jpeg image:
try {
FileOutputStream fos = new FileOutputStream("c://test.jpg");
BufferedOutputStream bos = new BufferedOutputStream(fos);
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bos);
encoder.encode(image);
bos.close();
} catch(Exception e) {
System.out.println(e);
The problem is that :
if the graphic width and height is large enough(in my computer, the largest number is 4000*4000,of course it can be 6000*2000, but the total number is limited.), step 1 will be error: OutofMemory!
I'm worrying about it all day and night.Even though I try all my best,I still can't find what's wrong with it.
Can you help me--the helpless one?Right. 4000x4000x3bytes ("true" color) is 64 mbytes. Your jpeg file might be smaller of course, but it's still going to be a behomoth. The best thing to try is increasing your java runtime size... I've never had to do this, but you can probably find it on this site somewhere
-
Can we create cursor using the table created dynamically
Dear all,
Can we create the cursor using the table which is created dynamically using "Execute immediate" within the same procedure,
or is there any way to call the table created dynamically ..
please Do Help me in this
thanks alot
Edited by: khaja on Jan 18, 2009 10:57 AMWell, I don't think this approach is bad in any possible circumstances. It depends on the requirements we don't know. Yes, usually applications should not be designed in this way. But 'usually' does not mean 'never'. One possible case is described in Oracle's example Referencing Database Objects that Do Not Exist at Compilation. It's possible to assume that tables inv_01_2003, inv_04_2003, etc from the referenced topic What Is Dynamic SQL? are generated automatically by some job using dynamic create table stmt. If the OP has similar requirements tnen this approach is not bad. It may not be the best one but it at least is not so bad as you said.
I believe that OPs know their requirements much better than me. This is why I always try to answer the exact question. If the approach is really ugly then I don't answer such questions at all.
Regards,
Dima
Message was edited by:
DimaCit -
What "Partitions" type should I use when I create an image in Disk Utility?
I have a Sony HDR-SR1 camcorder and have been creating images in Disk Utility to dump copies of my camcorders hard drive to. That way I can mount the disk image and import into iMovie just as if the camera was plugged in. These are the options I've been using:
Volume Size: varies
Volume Format: Mac OS Extended (Journaled)
Encryption: none
Partitions: Single partition - Apple Partition Map (the default I believe)
Image Format: read/write disk image
The option I'm not sure of and can't find much information on is Partitions. Up until now all the ones I've created use what I listed above. What is the difference between all the options (hard disk, cd/dvd, no partition, single partition - *multiple options*) and what should I be using to ensure long term compatibility with these disk images. Thanks.You don't need the journaling feature. Everything else appears proper. As for the various formats, check DU's help files.
-
Can i 'open using photoshop' without creating another image in LR
I'm working with RAW files imported into LR 3.2
I swear that in an earlier version of LR - when I did 'open with photoshop' a corresponding Tiff file was not created in LR unless the image was saved in Photoshop.
I'm sure it used to work along these lines...
Open with PS, start to edit in photoshop - then decide not to continue - exit photoshop without saving. Tiff not created in LR.
Open with PS, start to edit in photoshop - Ctrl+S in Potoshop (or save on exit, etc). Tiff was created in LR.
anyway- that's the methodology I want.... can I have it?
[I know that I can 'export' as a Tiff, but thats not the option I want. I only want files opened with PS, from LR, to save in LR if saved in PS]
SSI never use bridge..but,
If i browse to a folder with a raw file (I use DNG) and right click, open with CS5 - adobe CR6.3 and CS5 fire up.
In LR i import from camera, as DNG files.
If I use the edit with CS5 command, PSCS5 fires up but the image never shows in CS5, a corresponding Tiff is not created in LR. [This is an unresolved issue from some time ago, I've deleted preferences files etc..but cannot get transfer from LR to CS5 using 'edit with CS5']
To overcome this i have CS5 set up as second external editor - having pointed it to where CS5 is installed]
So. I have the DNG files in LR3.3.
Right Click - Edit in photoshope.exe (manually pointed as discussed above)
Dialog box 'what to edit' opens - choice of open a copy with LR adjustements is the only choice. Can selecte file size etc.
irrespective of whether 'stack with original' is selected - a Tiff file is genrated in LR, and CS5 fires up with the Tiff file open.
Saving in CS5 results in the file in LR being updated to match.
As earlier - I only want a Tiff created in LR, if I decide to save the Tiff from CS5.
thanks for help so far. -
Useing "MemoryImageSource" to create an image
Hi !!
I have written a programm to display an image in a frame useing a MemoryImageSource objest.
Here is the code:
int width=10;
int height=10;
java.awt.image.MemoryImageSource mis = new java.awt.image.MemoryImageSource(width,height,newImage,0,width);
Image testImage =createImage(mis);
ImageIcon newIcon = new ImageIcon(testImage);
lblChangedImage.setSize(width,height);
lblChangedImage.setIcon(newIcon);
--------------------------------The array values of the "newImage" array are as follows -----------------------
position value
0 75
1 82
2 93
3 105
4 119
5 132
6 144
7 152
8 151
9 150
10 148
11 142
12 141
13 145
14 147
15 143
16 139
17 139
18 140
19 142
20 145
21 148
22 152
23 154
24 154
25 155
26 158
27 159
28 160
29 159
30 157
31 156
32 157
33 157
34 156
35 156
36 157
37 160
38 162
39 163
40 160
41 166
42 171
43 172
44 168
45 166
46 167
47 169
48 166
49 167
50 165
51 158
52 153
53 151
54 149
55 146
56 134
57 120
58 104
59 98
60 99
61 102
62 99
63 94
64 88
65 101
66 99
67 91
68 99
69 104
70 97
71 93
72 98
73 95
74 98
75 104
76 106
77 103
78 100
79 101
80 99
81 95
82 94
83 98
84 106
85 108
86 103
87 96
88 95
89 96
90 98
91 99
92 99
93 97
94 96
95 95
96 102
97 103
98 104
99 109
I hope some one will help me to solve this problem.
Thank you in advance.
MudithaTry this, it create a very, very small icon:
import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
public class Muditah1
public static void main(String[] argv)
//int white= (0xff<<24) | (255<<16) | (255<<8) | 255;
int black= (0xff<<24);
int yellow= (0xff<<24) | (255<<16) | (255<<8);
int[] pixels= {
yellow, black, black, black, yellow,
black, yellow, black, yellow, black,
black, black, yellow, black, black,
black, yellow, black, yellow, black,
yellow, black, black, black, yellow
Image image= Toolkit.getDefaultToolkit().createImage(
new MemoryImageSource(5, 5, pixels, 0, 5));
JFrame frame= new JFrame();
frame.getContentPane().add(new JLabel(new ImageIcon(image)));
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
} -
Can i use iphoto to create transparent images?
I would like to know if there is any way to edit my images on iPhoto to have a transparent background. I need to upload photos to a website, but I do not want there to be a white "shadow" around my images. I know you can do it with Photoshop, but can you do it easily with iPhoto?
No. But the Instant Alpha feature in Preview or Pages will do this for you. Image editors like Acorn have this as well. Remember to save the files as png or other, as jpeg doesn't support transparency.
Regards
TD -
How to create thumbnail images on the fly from JSP or servlet?
Hi all,
Iam new to this forum. I need a solution for the problem iam facing in building my site. Ihave groups and briefcase section in my site. I allow users to upload files and pictures.
When they upload pictures i need to create thumbnail for them on the fly.
Is there any taglibs or java source to do this from JSP or servlets.
It would be very greatful if i can get an early answer.
Please let me know if there is any other forum where i can get better answer, if not here?
thnx.Here is how you can create dynamic images:
http://developer.java.sun.com/developer/JDCTechTips/2001/tt0821.html#tip2
However, if you want to create gifs/jpegs and save them to the disk it depends from where you want to create the images. It is different if you are creating from another image or just drawing one from scratch etc.. But in the end you will probably need to use one of the imageencoder classes and write the result to the disk with the file io classes. -
I have dipped in almost every search engine and this site to
locate some easier way to create dynamic image gallery in Flash 8
AS2 using ASP (as i am conversant with ASP only, although i found
many sites suggesting PHP and XML). I'd be very greatful to u all
if u could provide me some help in this part of my project.
I have tried this source also but neither the source throw
any error nor it displays the images, what could be wrong with the
source? Please Please Please Please Please Help me!!!!!!!!
this.createClassObject(mx.containers.ScrollPane,
"scroller_sp", 10);
scroller_sp. setSize (100, 300);
swfThumbs=["imgs/img1.jpg","imgs/img2.jpg","imgs/img3.jpg"]
this.createEmptyMovieClip("clipLoader",1);
for(i=0;i< swfThumbs.length;i++){
clipLoader.createEmptyMovieClip("clip"+i+"_mc",i)
clipLoader.attachMovie("clip"+i+"_mc","clip"+i+"_mc",i+10);
clipLoader.loadMovieNum(swfThumbs
,i+100);
scroller_sp.contentPath = clipLoader;
thanks in anticipation and regards
raajaindraHi,
I have a picture show.
It creates its own folder when you first upload images with
the integrated Image uploader. Then it loads the images in with
ASP.
Have a look at
http://netwings.info
- click the B1 Image-show.
When you are interested, the contact is at the site.
Regards,
Luciewong -
Dears,
Is it possible to create dynamic image marker theme? for example, I have a geometry table which contains the location of schools and universites, i would like to show different marker for each type. the geometry table has a code field (S: for school and U: for university). is it possible -some how- to dynamically change the marker based on the code value?
Tahnk youYou can either use an advanced style or, in your javascript, a layout customizer that looks at attributes stored in the FOI array.
-
i need to know how to create an image viewer would appreciate
help thanksyou can use loadMovie() to load a jpg image into flash (and
if you're using flash 8 you can load other image formats into
flash) and use it to create an image viewer. -
Dynamic Image Displays Blank When Using In Visual Studio Project
I am trying to simply display a dynamic image in a report. I am using Crystal Reports XI Release 2.
I have two different environments: Local via Progress where reports are called using Crystal Viewer ActiveX, and over the web where reports are called from Open Laszlo and Visual Studio project.
The image is set to a blank image as default, and Graphic Location Forumla loads the image from the database (site.logo_location + site.logo_filename) which results in an image http:
www.vetinfo3.com\a.jpg.
When I run the reports locally using the ActiveX control, it works just fine and displays the image.
When I run over the web using OpenLaszlo, it displays a blank.
Troubleshooting
We are using Visual Studio 2005, which is bundled with an older version of Crystal that doesn't support dynamic images.
To address this, I loaded Crystal XI Release 2, which updated the version in Visual Studio and enabled the Graphic Location formula field on the dev machine.
I verified the Graphic Location field was set correctly.
This caused a Version error, so we loaded cr_net_2005_mm_mlb_x86.zip on server and specified the Version in web.Config.
No errors now, but when I build and publish the code, the image still displays as blank.
From Fiddler
GET http://www.vetinfo3.com/mdsol1/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_c5d6a923-293b-4f1e-8739-4e698f83b087.png
Creates C:\Documents and Settings\Curtis\Local Settings\Temporary Internet Files\Content.IE5\PWRUX2XW\CrystalImageHandler[1].png
Blank Image
According to issues within Visual Studio, they say the fix to this is to add the <httpHandler> in web.Config, but it is already there; added when we add the viewer to the project:
In web.Config I have some questions about this line:
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
There are more service packs for Crystal XI Release 2:
crXIr2sp2_net_server_install.zip
crXIr2sp3_net_server_install.zip
crXIr2sp4_net_server_install.zip
I have not loaded these yet, but the readme files do not indicate they fix any dynamic image issues.
I am out of ideas on this; does anyone have any ideas?What about if you take OpenLaszlo out of the picture? E.g.; use one of our samples from here;
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
I'd recommend vbnet_web_simplepreviewreport
Also, see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80] article.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
Creating dynamically a image.. with background
Hi, i'm working on displaying dynamically an image file who shows some text and a rectangular. I want to enhance this method by passing an existing image file, so that this file can used as a background upon creating the gif.
Example: text = hello, rect = blue line and background = 'back.gif'
Result : an image file who consist out of the background, the text and the rectangular.
Is this possible, and could you get me started?
thxI'm not sure how this question relates to the J2EE SDK. Perhaps you can look at tools that can be used to construct GIFs dynamically. In the past I have used a tool called GIFs on the fly to create dynamic GIFs.
Maybe you are looking for
-
How to put smartform in mail body
Hi colleagues, I would like to send a mail with content build from a SMARTFORM. I call the smartform function module and get the corresponding OTF file, but I did not succeed to put it in a readable way in the mail body. How ot get the smartform as
-
"Software update" doesn't do anything whatsoever!
I have run "Software update" on my new Intel Mac Pro (10.4.9) successfully. Today, no matter how many times I select it from the Apple menu of Finder, the "Software update" doesn't do anything: no error, no "checking at Apple", nothing! Has anyone se
-
Hello People I am seeking for medium price, new laptop with firewire , and efficient in compression of video material. I can spend 600$ for it .
-
Why are my iTunes sections broken?
As you can see in the picture, the sections are mislabeld and there are random strings rather that actual names. For instance, Music is listed as TV Shows in the left sidebar. Does anyone now the issue? The window ui buttons are also missing, and any
-
You have been signed out from iMessage because your AppleID or password has been changed
I can not connact to iMessage. The following message is displayed after entering Apple ID and Password. "You have been signed out from iMessage because your Apple ID or Password has been changed." Apple ID is confirmed. Date and time and country sett