Servlet add text to image!

Hi I'm a newbie to java servlet, how can I add text to an image?
Thanks

hi, thank you for your message! actually java program allow you to add text to an image. Here's a sample code I found from the Net.
Actually there are a no of other examples, but all failed at my server.
My linux server is FC4.
The following code stated that:
* Note: on X-based systems like Linux or Solaris,
* this servlet probably won't work unless the host
* is running an X server
So what so I do, how to change the setting of my server?
Anyone pls help!
import java.awt.*;
import java.awt.image.*;
import javax.imageio.*;
import javax.imageio.stream.*;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
* This servlet provides the service of labeling an
* image with a text string. The caller of the
* servlet gets to specify the image (local file or
* URL), the text string, text size, and the color.
* This servlet has a large number of limitations,
* the foremost being that it will only write JPEG
* images (with minimal compression).
* <p>
* Note: on X-based systems like Linux or Solaris,
* this servlet probably won't work unless the host
* is running an X server.
* <p>
* This servlet requires the JAI/IIO package to be
* installed to perform JPG image output.
* <p>
* Example img src URL:<br>
* http://www.myhost.com/servlet/ImageLabelServer?src=http://www.foobar.com/logo.jpg&text=Foobar+Logo&size=28&color=90f000ff
* <br>
* This sample will cause the servlet to got retrieve the image logo.jpg from
* the www.foobar.com web site, and then overlay the text "Foobar Logo" in
* partially transparent purple 28-point text.
* @author Neal Ziring
public class ImageLabelServlet extends HttpServlet
public static final String PARM_IMAGE = "src";
public static final String PARM_TEXT = "text";
public static final String PARM_SIZE = "size";
public static final String PARM_COLOR= "color";
public static final String IMG_OUT_SUFFIX = "jpg";
public static final String IMG_OUT_MIME = "image/jpeg";
/* need these for doing AWT stuff */
static Component ob = null;
static Toolkit tk = null;
* Initialize stuff we need for this servlet.
public void init(ServletConfig conf) {
if (tk == null) tk = Toolkit.getDefaultToolkit();
if (ob == null) { ob = new Frame(); ob.addNotify(); }
* Just call the doGet method to handles posts.
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, java.io.IOException
doGet(req,resp);
* Process a request - we look for the parameters
* listed above. Our output consists of an image
* in image/jpeg format, or a 404 message if we
* couldn't load the requested image.
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, java.io.IOException
String src = req.getParameter(PARM_IMAGE);
if (src == null || src.length() == 0) {
resp.sendError(resp.SC_BAD_REQUEST, "No source image specified");
return;
String text = req.getParameter(PARM_TEXT);
if (text == null || text.length() == 0)
text = (new Date()).toString();
String size = req.getParameter(PARM_SIZE);
int textSize = 14;
try { textSize = Integer.parseInt(size); }
catch (Exception ie) { }
String color = req.getParameter(PARM_COLOR);
int textColor = 0x666666;
try {
if (color.startsWith("#")) color = color.substring(1);
textColor = (int)(Long.parseLong(color, 16) & 0x0ffffffff);
} catch (Exception ie2) { }
float cq = 0.01F;
String qual = req.getParameter("q");
if (qual != null && qual.length() > 0) {
try { cq = (float)(Double.parseDouble(qual)); }
catch (Exception ie) { }
Font f = new Font("Sans-serif", Font.BOLD, textSize);
Image img = null;
if (src.indexOf('/') >= 0 || src.indexOf(':') >= 0) { try {
URL u = new URL(src);
img = tk.createImage(u);
} catch (Exception ie3) { } }
else { try {
img = tk.createImage(src);
} catch (Exception ie4) { } }
MediaTracker mt = new MediaTracker(ob);
mt.addImage(img, 2);
try { mt.waitForID(2); } catch (InterruptedException eix) { }
if (mt.isErrorID(2)) img = null;
if (img == null) {
resp.sendError(resp.SC_NOT_FOUND, "Could not load source image");
int w, h;
w = img.getWidth(ob);
h = img.getHeight(ob);
BufferedImage img2 = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
if (img2 == null) System.err.println("img2 is Null!");
Graphics g = img2.getGraphics();
if (g == null) System.err.println("Graphics is Null!");
Color c = new Color(textColor, (((textColor >> 24) & 0xff) != 0));
g.setColor(c);
g.setFont(f);
g.drawImage(img, 0, 0, ob);
g.drawString(text, textSize/2, (textSize * 5)/4);
img.flush(); img = null;
Iterator writers = ImageIO.getImageWritersBySuffix(IMG_OUT_SUFFIX);
if (!(writers.hasNext())) {
resp.sendError(resp.SC_CONFLICT, "Cannot write JPEG image!");
return;
if (!writeImageOut((ImageWriter)(writers.next()), img2, resp, cq)) {
resp.sendError(resp.SC_CONFLICT, "Writing image failed");
return;
img2.flush(); img2 = null;
return;
* Write out the image to the servlet response stream.
* This method always sends a mime type of IMG_OUT_MIME.
boolean writeImageOut(ImageWriter wr, BufferedImage img,
HttpServletResponse resp, float cq)
boolean ret = false;
resp.setContentType(IMG_OUT_MIME);
try {
OutputStream oos = resp.getOutputStream();
ImageOutputStream ios = ImageIO.createImageOutputStream(oos);
wr.setOutput(ios);
ImageWriteParam parm = wr.getDefaultWriteParam();
parm.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
parm.setCompressionQuality(cq);
cq = parm.getCompressionQuality();
IIOImage ii = new IIOImage(img, null, null);
wr.prepareWriteSequence(null);
wr.writeToSequence(ii, parm);
wr.endWriteSequence();
ios.flush();
wr.dispose();
ios.close();
ret = true;
catch ( Exception ioe) {
System.err.println("Error in image writing: " + ioe);
ioe.printStackTrace();
return ret;
}

Similar Messages

  • HOW TO ADD TEXT TO IMAGES

    how do you add text to images in Aperture?

    the user can superimpose text (inc. metadata) anywhere: on the image, in the border, over both.
    Learn something new every single day...
    Regards
    TD

  • Is it possible to add text or image or gallery as a div on upfront position with "close"  button?

    I making a webdoc parallax site. I need add text like a div upfront other content and I need to possibility to hide it by click. Is it posible?

    Can you provide an example which will give us the exact idea as what you are trying to achieve.
    Thanks,
    Sanjit

  • Add text and image into pdf

    Hi,
    I have several PDF in which I must add a different text by pdf and image in all pages in each PDF document
    How do with the SDK and delphi
    Regard's
    Laurent

    I think you may misunderstand the capabilities of PDF. Are you expecting the PDF to reflow around your new content - because it will not.
    Leonard

  • How do I add text or images to the right hand side of a web page?

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>Digital Media Final Project&mdash;Using HTML5 &amp; CSS3</title>
    <meta name="Digital Media MA 2012" content="width=device-width" />
    <link rel="stylesheet" href="css/html5reset-1.6.1.css" media="screen" />
    <link rel="stylesheet" href="css/default.css" media="screen" />
    <link rel="stylesheet" href="css/css3enterprise.css" media="screen" />
    <!--[if lte IE 8]>
              <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
              <link rel="stylesheet" href="css/ie.css" media="screen" />
              <link rel="stylesheet" href="css/pie.css" media="screen">
    <![endif]-->
    <!--[if gte IE 7]>
              <link rel="stylesheet" href="css/pie78.css" media="screen" />
    <![endif]-->
    <!--[if IE 8]>
              <link rel="stylesheet" href="css/ie8.css" media="screen" />
    <![endif]-->
    <!--[if lte IE 7]>
              <link rel="stylesheet" href="css/ie7.css" media="screen" />
    <![endif]-->
    <!--[if lte IE 6]>
              <link rel="stylesheet" href="css/ie6.css" media="screen" />
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Six+Caps" />
                        <link rel="stylesheet" type="text/css" href="styles/screen.css" />
                        <!--[if lte IE 9]>
                                  <link rel="stylesheet" type="text/css" href="styles/ie.css" />
                        <!--<![endif]-->
    </head>
    <body>
              <div id="page" class="group">
                        <header id="site-header" role="banner">
                                  <hgroup>
                                            <h1>Silence in Vogue</h1>
                                            <h2>A sociological artifact using technology to tell stories.</h2>
                                  </hgroup>
                                  <a id="skip-nav" href="#content">Skip to main content</a>
                        </header>
                        <nav id="site-nav" role="navigation">
                                  <ul class="inline-list flush-left">
                                            <li><a href="index.html">Home</a></li>
                                            <li><a href="about.html">Mission Statement</a></li>
                                            <li><a href="research.html">Research</a></li>
                                            <li><a href="artifacts.html" class="active"></a></li>
                                            <li><a href="upload.html">Upload</a></li>
                                            <li><a href="http://www.renaissancedigital.co.uk/" title="Home | Renaissance Digital">Renaissance.Digital</a></li>
                                  </ul>
                        </nav>
                        <nav id="user-nav">
                                  <ul class="inline-list flush-left">
                                            <li><a href="#">@username</a></li>
                                            <li><a href="#">dashboard</a></li>
                                            <li><a href="#">inbox (42)</a></li>
                                            <li><a href="#">logout</a></li>
                                  </ul>
                        </nav>
                <div id="content" role="main">
                                  <section id="content-main" role="region">
                                    <h1>Artifacts</h1>
                                            <ul class="rollover">
                                                      <li><img src="images/image1.jpg" width="282" height="211" margin-right= "20" alt="The Earth" />
                                                        <h3>The Earth</h3>
                          <hr/>
                                              <a class="button" href="#" title="Click here for more information"><h6>More Info</h6></a> </li>
                                    <p><li>
                                                                <img src="images/image2.jpg" width="282" height="211" margin-right= "20" alt="E-Mirror" />
                                                        <h3>EMirror</h3>
                          <hr/>
                                                        <a class="button" href="#" title="Click here for more information"><h6>More Info</h6></a> </li>
                                    <p><li>
                                                                <img src="images/image3.jpg" width="282" height="211" margin-right= "20" alt="void" />
    <h3>something else</h3>
                                                                <hr/>
                                                                <a class="button" href="#" title="void"><h6>More Info</h6></a>
                                                      </li>
    <li>
                                                                <img src="images/image4.jpg" width="282" height="211" alt="Monkey's Dream" />
    <h3>A Monkey's Dream</h3>
                                                                <hr />
                                                                <a class="button" href="#" title="Click here for more information"><h6>More Info</h6></a>
                                              </li>
                        <li> <img src="images/image3.jpg" width="282" height="211" margin-right= "20" alt="void" />
    <h3>something else</h3>
                                                                <hr/>
                                                                <a class="button" href="#" title="void"><h6>More Info</h6></a><li>
                                                                <img src="images/image3.jpg" width="282" height="211" margin-right= "20" alt="void" />
    <h3>something else</h3>
                                                                <hr/>
                                                                <a class="button" href="#" title="void"><h6>More Info</h6></a></li>
                                                      </li>
    <li><img src="images/image3.jpg" width="282" height="211" margin-right= "20" alt="void" />
    <h3>something else</h3>
                                                                <hr/>
                                                                <a class="button" href="#" title="void"><h6>More Info</h6></a>
                                              </li>
    <li>
                                                                <img src="images/image3.jpg" width="282" height="211" margin-right= "20" alt="void" />
    <h3>something else</h3>
                                                                <hr/>
                                                                <a class="button" href="#" title="void"><h6>More Info</h6></a>
                                              </li>
                                            </ul>
                                  </div>
                </div>
           <!-- //#content-main --><!-- //#content-sub -->
                        </div><!-- //#content -->
                        <footer id="site-footer" role="contentinfo">
                                  <p id="awkward">Our Think Tank is virtual:</p>
                                  <ul id="footer-icons" class="inline-list no-bullets">
                                            <li><a id="icon-twitter" href="#">Twitter</a></li>
                                            <li><a id="icon-wordpress" href="#">Wordpress</a></li>
                                            <li><a id="icon-facebook" href="#">Facebook</a></li>
                                            <li><a id="icon-linkedin" href="#">LinkedIn</a></li>
                                            <li><a id="icon-vimeo" href="#">Vimeo</a></li>
                                            <li><a id="icon-flickr" href="#">Flickr</a></li>
                                            <li><a id="icon-dribbble" href="#">Dribbble</a></li>
                                            <li><a id="icon-gowalla" href="#">Gowalla</a></li>
                                            <li><a id="icon-sharethis" href="#">ShareThis</a></li>
                                            <li><a id="icon-technorati" href="#">Technorati</a></li>
                                            <li><a id="icon-rss" href="#">RSS</a></li>
                                  </ul>
                                  <div id="copy">
                                            <p>&copy;2012 Renaissance.Digital ltd. </p>
                                  </div><div id="container">
                                  <div id="head">
                                  </div>
              </div><!-- //#page -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
    <!--[if lte IE 8]>
              <script src="js/selectivizr.js"></script>
              <script src="js/css3-mediaqueries.js"></script>
    <![endif]-->
    <!--[if lte IE 6]>
              <script src="js/ie6.js"></script>
    <![endif]-->
    <script src="js/functions.js"></script>
    </body>
    </html>
    not sure if there is a conflict with css's!
    Message was edited by: chineseadam  I put a little note at the very bottom of the document!

    Ok.  Here you are...
    http://www.silenceinvogue.org/artifacts.html
    I added float right as you said but the images moved into the middle.
    Here is the css:
    body {
                        margin:                              0;
                        padding:                    0;
                        font-size:                    62.5%;
              #container {
                        position:                    relative;
                        width:                              960px;
                        margin:                              auto;
              #head {
                        position:                    relative;
                        text-align:                    center;
              h1 {
                        font-size:                    6em;
                        font-weight:          normal;
                        text-transform:          uppercase;
              #content {
                        position:                    relative;
              ul.rollover {
                        position:                    relative;
                        margin:                              0;
                        padding:                    0;
              ul.rollover li {
                        background:                    #d1d694 url(libg.jpg) no-repeat center center;
                        position:                    relative;
                        list-style:                    none;
                        margin:                              0;
                        padding:                    0;
                        width:                              200px;
                        height:                              125px;
                        overflow:                    hidden;
                        border:                              20px solid white;
                        float:                              left;
                        margin-right:          20px;
                        margin-left:          20px;
                        margin-bottom:          40px;
                        -webkit-box-shadow:                    0px 0px 10px #333;
                        -moz-box-shadow:                    0px 0px 10px #333;
                        -ms-box-shadow:                    0px 0px 10px #333;
                        -o-box-shadow:                    0px 0px 10px #333;
                        box-shadow:                    0px 0px 10px #333;
              ul.rollover li img {
              z-index:                    30;
              position:                    absolute;
              top:                              0px;
              left:                              0px;
              -webkit-transition:all 0.7s ease-out;
              -moz-transition:all 0.7s ease-out;
              -ms-transition:all 0.7s ease-out;
              -o-transition:all 0.7s ease-out;
              width: 280px;
              height: 168px;
              ul.rollover li:hover img {
                        -webkit-transform: scale(6);
                        -moz-transform:           scale(6);
                        -ms-transform:           scale(6);
                        -o-transform:           scale(6);
                        opacity:                              0;
              ul.rollover li h2 {
                        font-size:                              3em;
                        color:                                        #333;
                        margin:                                        0;
                        padding:                              0;
                        line-height:                    1.5em;
                        letter-spacing:                    0.1em;
                        text-align:                              center;
                        text-transform:                    uppercase;
                        -webkit-transition: all 0.5s ease-in;
                        -webkit-transform:          scale(0.1);
                        -moz-transition:           all 0.5s ease-in;
                        -moz-transform:                    scale(0.1);
                        -ms-transition:           all 0.5s ease-in;
                        -ms-transform:                    scale(0.1);
                        -o-transition:           all 0.5s ease-in;
                        -o-transform:                    scale(0.1);
                        opacity:                              0;
              ul.rollover li:hover h2 {
                        padding-top:                    30px;
                        -webkit-transform:          scale(1);
                        -moz-transform:                    scale(1);
                        -ms-transform:                    scale(1);
                        -o-transform:                    scale(1);
                        opacity:                              1;
              ul.rollover li hr {
                        width:                                        0px;
                        color:                                         #333;
                        background-color:           #333;
                        border:                                        none;
                        height:                               2px;
                        margin:                                        auto;
                        -webkit-transition:          all 0.6s linear;
                        -moz-transition:          all 0.6s linear;
                        -ms-transition:                    all 0.6s linear;
                        -o-transition:                    all 0.6s linear;
              ul.rollover li:hover hr {
                        width:                                        100px;
              ul.rollover li p {
                        font-family:                    helvetica, arial, sans-serif;
                        text-transform:                    uppercase;
                        margin:                                        0;
                        padding:                              0;
                        font-size:                              1.1em;
                        padding:                              20px;
                        text-align:                              center;
                        text-tranform:                    uppercase;
                        -webkit-transition: all 0.6s ease-in;
                        -webkit-transform:          scale(0.1);
                        -moz-transition:           all 0.6s ease-in;
                        -moz-transform:                    scale(0.1);
                        -ms-transition:           all 0.6s ease-in;
                        -ms-transform:                    scale(0.1);
                        -o-transition:                     all 0.6s ease-in;
                        -o-transform:                    scale(0.1);
                        opacity:                              0;
              ul.rollover li:hover p {
                        -webkit-transform:          scale(1);
                        -moz-transform:                    scale(1);
                        -ms-transform:                    scale(1);
                        -o-transform:                    scale(1);
                        opacity:                              1;
              ul.rollover li a.button {
                        display:                              block;
                        text-align:                              center;
                        font-family:                    helvetica, arial, sans-serif;
                        position:                              relative;
                        text-transform:                    uppercase;
                        letter-spacing:                    0.2em;
                        padding:                              4px;
                        text-decoration:          none;
                        font-size:                              1.6em;
                        background:                              #333;
                        color:                                        #d1d694;
                        width:                                        60px;
                        margin-left:                    125px;
                        border:                                        none;
                        -webkit-transition: all 0.6s ease-in;
                        -webkit-transform:          translateY(230px) scale(5);
                        -moz-transition:           all 0.6s ease-in;
                        -moz-transform:                    translateY(230px) scale(5);
                        -ms-transition:           all 0.6s ease-in;
                        -ms-transform:                    translateY(230px) scale(5);
                        -o-transition:                     all 0.6s ease-in;
                        -o-transform:                    translateY(230px) scale(5);
                        opacity:                              0;
                        cursor:                                        pointer;
                        z-index:                              50;
              ul.rollover li:hover a.button {
                        -webkit-transform:          translateY(0) scale(1);
                        -moz-transform:                    translateY(0) scale(1);
                        -ms-transform:                    translateY(0) scale(1);
                        -o-transform:                    translateY(0) scale(1);
                        opacity:                              1;

  • I am looking for a SIMPLE photo enhancing application options, add text, additional images to photos crop, lines

    any suggestions for simple graphic photo enhancement apps?

    Hi there,
    I've just joined google for my email and like you wanted to sync my contacts and calendar.
    I had a couple of problems but have ironed them out below.
    First....Google have a 'google sync' program that is advertised as syncing both your contacts and calendar. This has not worked for me. I can sync my calendar no problem at all, but it hasn't worked for my contacts. On looking across the google firums I am by no means alone and indeed google employees who post there have acknowledged the problem too,
    So how to get round it and sync your calendar and contacts?
    For calendar go to this link
    http://www.google.com/mobile/products/sync.html#p=nokia_smart
    Follow the instructions and tell the Mail for Exchange program NOT to sync your contacts.  Like I said, although it's supposed to I couldn't get it to work despite a reformat of the device twice! A google employee on the forums even went out and bought the 5800 and tried to get it to work as he has noted that people are having problems. Hopefully it'll be addressed in the future.
    For syncing your contacts, go to this page
    http://www.google.com/support/mobile/bin/answer.py?answer=98230&topic=15015
    All the details for contacts sync are laid out for the pages of setup you have for a S60 3rd edition device. If, like me you have a S60 5th edition device, the details are all there but are requested in a different order. Have a good scan of the pages and you WILL find all the info you need.
    Both methods work great for me and I'm delighted.
    Hope this maybe helps
    If my post has helped you in anyway, please press the 'kudos' button.
    Thanks

  • I want to add runtime Text or Image watermark on pdf using iText1.3 api

    Hi all,
    I want to add a watermark(text or image) at the runtime, I am creating pdf file with using iText 1.3 api.
    It created fine. I have following code for add watermark for an existining file.
    <code>
    try {
    PdfReader reader = new PdfReader("ConfirmBillPDF.pdf");
    int n = reader.getNumberOfPages();
    PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("NewPDFWithWatermarkImage.pdf"));
    int i = 0;
    PdfContentByte under;
    Image img = Image.getInstance("ValidityExpWaterMark.png");
    img.setAbsolutePosition(100, 400);
    while (i < n)
    i++;
    under = stamp.getUnderContent(i);
    under.addImage(img);
    stamp.close();
    catch (Exception de)
    de.printStackTrace();
    </code>
    But I want to add this with runtime.
    Plese help me..

    MODERATOR ACTION: moved this here from the Servlets forum 'for closer topic alignment'.

  • How do I add text to an image?

    I have purchased a template and imported it to Photoshop. I then sliced the template into sections, saved it for web and opened the index file in dreamweaver. My questions is, how do I add text to the images? I want to add the text content, within the boxes on the template, but because they are exported as images from Photshop I can't seem to do it...So let's say there is a box in the middle of the template and I want it to say, Services at the top and below that have a little information about the services offered with a "read more" button at the bottom. I have exported the template out of photoshop with text added and with the boxes empty. I tried to add the text in dreamweaver but couldn't. When I export the sliced template out of photoshop with the text already included, it does show up in Dreamweaver, however it is not in html and I would like it to be for SEO purposes. Forgive me if this question is silly or already answered, I have looked everywhere and couldn't find the answer.
    Thanks in advance to anyone that can help.

    Hi,
    I prefer to use tables for that. For example (First of all you have to store this new file):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>AddedText</title>
    </head>
    <body>
    <table width="40%" border="4">
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
      <tr>
        <td align="center" valign="top"><div align="center"><img src="yourPicture.jpg" alt="image 01" width="127" height="33" /></div></td>
      </tr>
      <tr>
        <td>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text </td>
      </tr>
    </table>
    </body>
    </html>
    Here I took a table with only one column, you can modify my choice.
    There is so too a possibility to use a complete flow text around a picture. If you like that, please give me a shout.
    About the story "hotspots" look here where I tried to give an answer a short while ago: http://forums.adobe.com/message/2700306#2700306
    Hans-G.

  • What is the best way to add text to an image

    I used the draw ap div to add text to an image.  will that cause any problems?  If so, what is the best way to add text to an image?  Thanks!

    APDivs will kill your design unless you fully understand the css behind the scenes and plan accordingly. They really are completely unnecessary in the vast majority of situations.
    An easy way to add "web text over an image" would be to use the background-image attribute in css for a standard <div> tag, then just add the text within that same <div>.
    Something like this in the css (if you are using a 300x300 pixel image)...
    #yourdiv {
         background-image:url(yourpic.jpg);
         width:300px;
         height:300px;
    And then this in the html...
    <div id="yourdiv">Your text here</div>
    You would then position the <div> using css margins, floats and padding. Using position:absolute (APDivs) is typically something that will blow your design to pieces if the viewer changes their browser settings.

  • I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    OK Thanks Brad.
    I could use Tockify of course, but wanted to create the same things on an existing site.
    I do not know how to copy the code and get it onto Muse, but that’s OK for now. I will work something else out.
    Robert

  • Image turns red when trying to add text?

    I'm using CS5 64 bit on a Win7 64-bit machine, with 8GB RAM.
    I have been creating images, then adding text to them, with no problem. All of a sudden, something is going wrong.
    I have created an image out of a white background with green text. I saved it as a .psd
    Later, I opened it in CS5, and clicked the Text tool. I put the cursor on the image, and the whole image box turned red.
    All the options under Layer (like New or Duplicate) are grayed out.
    The Layers box shows just one layer, named Index. Right clicking on that shows all grayed out options.
    I also tried to add text to a previously saved .jpg with the same result.
    If I make a new image, I can add text correctly.
    And I can also add text to other .jpgs I've made previously.
    So apparently it is something to do with the way these particular files were saved or something?
    I tried resetting the Text tool but that did no good.
    What am I doing wrong? What makes these images different?
    I tried to upload the .psd image in question, but I got an error message saying that "the content type of this image is not allowed".
    Thanks!

    If you want to post a large image or one of a format that isn't supported by direct attachment here, here's a suggestion:
    Go to YouSendIt.com.
    Create a free account.
    Upload and send the image to yourself.
    When you get the URL, post it here.
    -Noel

  • How do you add text to an image in dreamweaver cs3?

    does anyone know how to add text to an image in dreamweaver cs3? someone help me im stuck

    Hello,
    pardon, your question is still formulated in too general manner, for me at least, because there are several possibilities for these things. Please take a look on Nancy O.'s templates and tutorials, for example here:
    http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml
    http://alt-web.com/TEMPLATES/Dark-Grid-II.shtml
    http://alt-web.com/DEMOS/CSS-Clickable-Table-Cells.shtml and not to forget:
    http://alt-web.com/DEMOS/CSS-Sold-Out-Text-over-image.shtml
    you will come away with many ideas and suggestions about adding text to an image.
    Wish you a joyful "poking around"!
    Hans-Günter

  • How to I add text on top of image? I am using pages version 5.2.2

    I am working on an apple desk top OSX version 10.9.4. Since the new pages version 5.2.2 came out, I have been unable to add text on top of an image. Can anyone help me? Thanks ahead of time.

    Pages v5 is not as flexible as Pages ’09 v4.3. If you want text over a free-standing image in your document, then you will need to place it in a Text Box, Shape, or other custom container created with the Unite, Intersect, Subtract, or Exclude items in the Arrange panel. Simply selecting the image and then, in the Arrange tab, stating move with text; setting wrap to none, and clicking back/ward — does not help.
    You will need one of the containers from the second sentence positioned on top of your image. Once your text is input and styled, select the Text Box and the image, then from the Arrange tab, select group to maintain your text/image spatial relationship. If you need the image and its text container to adapt to other text in your document, you can enable the wrap functionality that best suits your document goals.
    This can get interesting, because you can independently define the selected Text Box content as a text placeholder, and the image as a media placeholder. Save it as a template. When you open a new document with this template, you can drag and drop a new image onto the old one, and it is automatically scaled and replaced without effecting the Text Box content. You can then double-click the Text Box content and change it.

  • Servlet: send back text and images to the requester

    Hi,
    I need some help about servlet responses.
    I want to send back some text (and maybe some images) back to the requester after a POST request.
    Can you give me some tips ?
    thanks

    aneuryzma wrote:
    I want to send back some text (and maybe some images) back to the requester after a POST request.
    Can you give me some tips ?Tip: Make up your mind. You can only send one thing as the response. If you want to send text, then send text. If you want to send an image, then send an image. In any case you should set the content type to indicate what you're sending.
    You can only send a mixed bag of text and images in the unlikely case that you've defined your own content type along with a client which understands it. Or if you zip them all into a zip archive, or something like that.

  • I edit my photos in Photoshop, save as jpeg then import back into iPhoto.  But if I add text to an image in Photoshop can't save as jpeg but as psd. Is there any way I can change to jpeg in iPhoto?

    I edit my RAW photos in Photoschop CS3, save as jpeg then import back into iPhoto 11.  If I add text in Photoshop I can't save as jpeg but as psd.  Is there any way I can change to jpeg in iPhoto?

    Terence Devlin wrote:
    Yes you can. But you need to flatten it as jpeg doesn't support layers.
    While the final JPEG can't have layers, it is not necessary to flatten the original Photoshop file to create a JPEG. There are two ways to make a JPEG while not losing the flexibility of preserving layers, and they both flatten on the fly while saving.
    I just tried this in Photoshop CS3 myself. When I add a text layer, and choose Save, the Save As dialog box comes up and defaults to PSD as was described. But... that is just the default! Go ahead and choose JPEG from the Format pop-up menu down below the file list. JPEG is in there. So what happens to the layers? Notice when you choose JPEG, the Layers box grays out and the "As A Copy" box grays out and is checked (i.e. you cannot uncheck it). What is going on here is Photoshop will gladly make a JPEG of your layered file, but it will force the JPEG to be a copy, so as to not overwrite the original layered file. This is good, because your Photoshop file with its editable text layer is preserved, and you get a JPEG copy to put in iPhoto.
    The second way is, instead of doing Save or Save As, choose File/Save for Web and Devices. This will also give you a JPEG choice, and also create an exported copy. Because this way makes files for the Web, they will be smaller than JPEGs from Save As because they will lack built-in previews (which you don't really need these days) and other extra metadata that take up space.
    Either way you get a JPEG you can toss back into iPhoto.
    Terence Devlin wrote:
    Only by exporting.
    The Export menu in Photoshop CS3 does not have any direct choices for JPEG.

Maybe you are looking for

  • Messages stuck in outbox when using "Send to Mail recipient" and outlook is closed

    A user who uses RPC over https all the time on his desktop in the office. In general he has no problem to send/receive emails. But when he tried to send a File through right click - > send to -> Mail recipient , New Email window opens and He changes

  • ERS - Payment method not on the invoice

    Hi All, In the process of creating invoices using ERS, the payment method from the vendor master will not be defaulted on the invoice. Is there any way, may be a usereixt/badi, to default the first payment method given in the vendor master on the inv

  • CD for car MP3

    I realized that at least half of my music library is saved as MP3 and the other half (that imported from my old CDs collection) is M4a. When I burn the CDs in order to listen in the car unfourtunately the m4a is not recognized/played by the car. I tr

  • Macbook pro 15" stutter/lag in photoshop

    I just bought my 15" macbook pro and installed Photoshop on it. It stutters when moving pictures, when moving zommed in canvas etc. The picture im moving is a 2mb small picture and there is a noticable lag when moving it. I've changed the performance

  • SOA 11g Certification

    Hi All, What is the certification available for SOA 11g on developer roles. Also can anybody provide me with the list of books available for preparation of the above certification. Thanks, Vijay