First Script: Need some basic skill help? Can you add an image with a click?

Hello, Im working on a project were you can replace people heads in a photo. Its for a project so its not supposed to be perfect. So far heres what i think the best steps to take are, but im not sure how to take the first scripting steps. How can i add an image with a script? How can i store a x y coordinates?
1. I would create four variables and than store the XY cords of the the high point of the head, the bottom of the chin, amd the farthest right and left of the face.
2. I would than add the image of the head that I would already have.
3. If the x coordinates of the top and bottom are off kilter, I would rotate new head until = old face dimensions..
4. I would also see if the width is too big or small and resize accordingly
5. I would than resize the head so that the eyes would match up.
Thanks for any help you can provide!

Is that script for a browser html. Its not for Photoshop and like Photoshop would fine UiApp undefined so does Microsoft.  Is that a Chrome script or Android script? Why post it here?
Atiqur Sumon wrote:
function doGet() {
   var app = UiApp.createApplication();
   // The very first Google Doodle!
   app.add(app.createImage("http://www.google.com/logos/googleburn.jpg"));
   // Just the man in the middle
   app.add(app.createImage("http://www.google.com/logos/googleburn.jpg", 118, 0, 50, 106));
   return app;

Similar Messages

  • How can you add an image in Mail without being an attachment?

    How can you add an image in Mail without being an attachment?
    In otherwords I'd like to put my logo in the email not as an attachment but as an image.
    Is there a simpel solution to this problem?

    PBN1 wrote:
    How can you add an image in Mail without being an attachment?
    You don't.
    It's not possible. The e-mail protocol is designed for text; anything else has to go as an attachment.
    Different mail clients (such as Mail.app, the mail client bundled with Mac OS X) may have different ways of handling such attachments, but they are still attachments. Each mail client has its own rules and methods, so one may display a picture as if it were in the body of the message, but another client may do something completely different.
    A way of faking it is to format your message in HTML (which is a kind of text). The image is hosted on a remote server, not added to the message; instead, you include a link to it in the body of the message, as you would when building a web page. (This is also what the two tips helpfully provided by X423424X do, except that the link to the image is added in the signature, rather than the body of the message.) What exactly happens to it is, again, at the discretion of the mail client. In my case, for instance, displaying images in HTML messages is turned off, and will stay resolutely off.

  • Can you add an image to an External Style Sheet?

    Can you add an image to an External Style Sheet?  If so how?
    I have not been able to find examples of this?
             Help
                        Obvious Newbie

    To populate all pages in a site with a common banner image or menu, read DW help about Templates, Library Items or Server-Side-Includes.
    As Nadia said, you can style a #header division with CSS to use a background image.
    EXAMPLE here:
    http://alt-web.com/DEMOS/Liquid-header.shtml
    CSS code:
    #header {
         padding:0 10px 0 10px;
         line-height:0;
         color:white;
         font-weight:bold;
         background: #000000 url(../Images/Alt-Web-lensflair.jpg) no-repeat top left;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    HTML Validator - http://validator.w3.org
    CSS Validator - http://jigsaw.w3.org/css-validator/
    Tutorials  - http://w3schools.com/

  • Can you add an image as a spacer in SpryMenuBars?

    SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6.1
    Version CS5 DW – Windows XP 32bit system
    Can you insert an image as a spacer in the Spry Menu Bar widget?
    Page link: http://test.thunderscientific.com/NewMenuTest-Vertical.html
    I need to insert an image between menu items; About Thunder and Product Information that matches the height and width of a new menu item with no link to anything.
    I’ve tried the image as a background image and it just shows up as the image for all menu items and that’s not what I want.
    Would I put the code in the HTML or in the CSS?  I’ve tried both to no avail.
    I also tried to add a new CSS rule and that didn’t work ether.
    Is what I’m asking even a possibility?
    Thanks,
    Thunder Bolt 
    Menu

    I just wanted to say thank you to "vw2ureg" for answering my post, and very quickly I might add.
    This worked perfectly, the only thing I had to change was, the background from a color to an image, and the height to 15 pixels and it worked great!
    Thanks very much…
    ul.MenuBarVertical a.spacer {
    background-image:url(../images/image.gif);
                    cursor: default !important;
                    height: 15px;

  • Need some basic Thread Help

    Hello everyone,
    I've recently been working on a game project with network capabilities.
    I need to be able to send data to a client and vice-versa for both a client and a host.
    Say whenever a player moves a character it should send the new coords, etc to the other person
    I have all the networking through a Host and Client class done already, with methods like sendData(String[] data) and getData(). What I need is some sort of update thread in the main program to send this data without stopping the flow of the program.
    I was thinking maybe a inner class inside the main program which extends a thread but I'm not sure how to implement that.
    Please help if you can. Thanks.
    P.S - Would maybe making the Host and Client classes extend Thread work too?
    (Then I can do all the threading inside there instead)

    dekenx wrote:
    Hello everyone,
    I've recently been working on a game project with network capabilities.
    I need to be able to send data to a client and vice-versa for both a client and a host.
    Say whenever a player moves a character it should send the new coords, etc to the other person
    I have all the networking through a Host and Client class done already, with methods like sendData(String[] data) and getData(). What I need is some sort of update thread in the main program to send this data without stopping the flow of the program.Sounds like a producer/consumer pattern. You produce move data, put it on a queue, and go on with the game. Meanwhile, a consumer thread reads from the queue of move data and pushes it over the network to the other side.
    I was thinking maybe a inner class inside the main program which extends a thread but I'm not sure how to implement that.
    Please help if you can. Thanks.
    P.S - Would maybe making the Host and Client classes extend Thread work too?
    (Then I can do all the threading inside there instead)The inner class or deciding which class to have extend Thread are implementation details you shouldn't be thinking about until you have a good understanding of the overall approach.
    Having said that, you should almost never extend Thread, since you're not creating a specialized kind of Thread class. You're just creating a task to be run in a separate thread, so implement Runnable. Or use an Executor from the java.util.concurrent package.
    I would also probably not use an inner class for this.

  • Really need some !!HELP!! ALMOST 6 MONTHS WITH OUT BURNING A CD

    I've posted before about my problem but but i still have not gotten an answer. This might be my last atempt to get any help before i end up taking my laptop to a repair shop so here we go.
    I've recently ran a diagnostic with i tunes and here it is:
    Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)
    TOSHIBA Satellite A75
    iTunes 6.0.1.3
    CD Driver 2.0.4.3
    CD Driver DLL 2.0.3.2
    LowerFilters: PxHelp20 (2.0.0.0), drvmcdb (1.0.0.1), ASAPIW2K (6.0.2.0), Pfc (2.5.0.204), MxlW2k (1.1.0.120), sscdbhk5 (1.0.0.1), Cdr4_xp (6.2.0.132),
    UpperFilters: CDRDRV (6.0.0.0), Cdralw2k (6.2.0.132), GEARAspiWDM (2.0.4.3),
    Video Driver: ATI MOBILITY RADEON 9000 IGP\ATI MOBILITY RADEON 9000 IGP
    IDE\DiskFUJITSUMHU2100AT______________________00000008
    Could not get bus type for CD, 50. Problem with installation of drive in Windows.
    , Bus Address [0,0]
    IDE\CdRomMATSHITADVD-RAM_UJ-820S________________1.50___, Bus Type ATA, Bus Address [0,0]
    SCSI\CdRomVOBID__InstantDrive_CD_14_, Bus Type SCSI, Bus Address [0,0]
    If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
    Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
    Current user is administrator.
    D: MATSHITA DVD-RAM UJ-820S, Rev 1.50
    Audio CD in drive.
    Found 11 songs on CD, playing time 33:12 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 02:20:15
    Track 3, start time 05:07:42
    Track 4, start time 06:13:12
    Track 5, start time 08:31:30
    Track 6, start time 13:17:17
    Track 7, start time 17:34:35
    Track 8, start time 20:47:57
    Track 9, start time 23:22:25
    Track 10, start time 25:16:60
    Track 11, start time 28:56:22
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are: 4 8 12 16.
    The drive CDRW speeds are: 4.
    The drive DVDR speeds are: 4 8 12.
    The drive DVDRW speeds are: 4 8 12.
    E: Unsupported CD or DVD drive.
    Virtual drives can sometimes interfere with reading and writing CDs in iTunes. If this is a virtual drive and you are having problems with other drives, try uninstalling the virtual CD application.
    it apears to be something wrong with drive E but in the properties it says its working perfectly.
    Every time i try to burn a cd i get the blue screen error.
    i hade version 7 of i tunes kept getting the same thing, so i went back to 5.3 but still the same thing. It also happens when i try to burn a cd with nero, i have WMP but don't use it. so now i really hope to get an answer or i have no other choice but to take it to a repair shop. SO !!PLEASE HELP ME!!

    no problems about the delay.
    the 0x8E is reasonably generic. so let's try proceeding on two fronts.
    1st front: we'll get a minidump to the Apple Engineers for a look
    (the minidump can help identify the driver that seems to be causing the issue here.)
    To set up your machine to capture a minidump, right click on "My Computer", select "Properties", select the "Advanced" tab, select the "Startup and Recovery" Settings button, select "small memory dump" from the popup. When it crashes, look for the MiniDump file. It's usually in the folder "C:\WINDOWS\Minidump" and is called something like Mini<number>-<number>.dmp.
    Find that file and send it as an attachment to this email address.
    in the email to Roy, be sure to include the following information:
    - A link to the thread on Apple Discussions where the issue is being discussed
    - The username you are using in the thread
    - The version of iTunes you are using or trying to use
    - the version of Windows you are using (mention service packs)
    - A concise description of the issue you are seeing
    - The exact text of the error message you are seeing
    2nd front: checking on a few possibilities ourselves while waiting for feedback on the minidump
    (a) device filter conflicts: blue screens with itunes while burning can be caused by device filter conflicts (i've seen 0x8Es before in cases of conflicts with old Roxio products). so perhaps try the techniques from the following document:
    iTunes for Windows: Troubleshooting CD issues caused by device filters
    (b) malware:
    malware is a known cause of 0x8Es. try downloading fresh definitions and running vigorous virus and spyware scans. if your security software providers offer them, try running online scans too. (they can sometimes pick up an infection in cases where the security software on the PC has been compromised.)
    if your security software providers don't offer online scans, try running the Symantec online virus check. (apologies in advance ... it takes an eternity to complete.)
    Symantec Security Check

  • Can you add an image to the feed after its been submitted to iTunes?

    I did not have an image prepared when I intially made my podcast feed. I know have the image and would like to add it to the feed so it appears in the iTunes store. Is there a simple way to do this? Thanks.

    You can simply add it to the feed and re-upload. (You don't need to re-submit when adding episodes or making alterations.) If you are handwriting your feed (unlikely) it goes in the 'itunes:image' tag in the top section of the feed; if you are using a program or online service to create your podcast there will be somewhere you can add the image. It should ideally be 1400 x 1400 px.
    Once uploaded, it will take some days before it appears in the iTunes Store.

  • Can you add an image to the favourites icons in safari ios7?

    A lot of my icons have no image. Can I add one myself? If not can you remove the icons without removing them as favourites

    You can simply add it to the feed and re-upload. (You don't need to re-submit when adding episodes or making alterations.) If you are handwriting your feed (unlikely) it goes in the 'itunes:image' tag in the top section of the feed; if you are using a program or online service to create your podcast there will be somewhere you can add the image. It should ideally be 1400 x 1400 px.
    Once uploaded, it will take some days before it appears in the iTunes Store.

  • Can you capture an image with Zenworks already installed?

    I remember seeing somewhere on this site where you can install Zenworks on your base imaging machine, then capture that image and deploy the image to other devices, but the key is, you have to do some command on your machine you are capturing an image of to stop some kind of conflict from happening with GUID's, etc.
    What is that command please?

    Motc7,
    > I remember seeing somewhere on this site where you can install Zenworks
    > on your base imaging machine, then capture that image and deploy the
    > image to other devices, but the key is, you have to do some command on
    > your machine you are capturing an image of to stop some kind of conflict
    > from happening with GUID's, etc.
    >
    > What is that command please?
    >
    You need to unregister the machine, zac unr
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    Novell has a new enhancement request system,
    or what is now known as the requirement portal.
    If customers would like to give input in the upcoming
    releases of Novell products then they should go to
    http://www.novell.com/rms

  • Can you add an image to a bookmark on the Bookmarks Toolbar?

    I have some bookmarks on my Bookmarks Toolbar that do not have a favicon attached to their webpage, so an icon of a blank page shows up instead. Are there any other options?

    You can add a favicon with the [https://addons.mozilla.org/firefox/addon/7849/ Favicon Picker 3] add-on.

  • Can you wrap an image with a link in an html email signature?

    When I cite a remotely hosted image in an html signature, and try to make that image a link, the link is ignored and the just the image is shown.
    e.g.:
    <a href="https://www.facebook.com/pages/Ubiquia/146019678805381" target="_blank">
    <img style=" position:absolute;
    height:30px;
    width:30px;
    left:172px;
    top:157.5px"
    src="http://png.findicons.com/files/icons/2779/simple_icons/48/facebook_48_black.png" alt="ubiquia facebook" moz-do-not-send="true"
    >
    </a>

    For each icon that you want to use in your email signature:
    locate icon on internet webpage - right-click on the icon and select 'Save Image as'. Save the icon to your computer in a suitable file.
    Then in Thunderbird
    insert > Image
    choose file - locate the saved icon on your computer
    click on Link tab and enter the www etc webpage link info
    click on OK to insert image with link.
    Codewise, where you have the actual icon you would need something stating where the icon is located:
    eg
    <a href="https://www.facebook.com/pages/Ubiquia/146019678805381" target="_blank">
    path to image saved on computer included in within <> </a>

  • Can you add People Picker with multiple values to Word Document using Quick Parts?

    Hi all, I've been trying to develop a form in Word that takes a bunch of metadata from the SharePoint library. Most of it works okay, but when I try to add any fields that have been set up to take multiple entries in a people picker, they don't show up
    in the add quick parts list. Any ideas, or is this a limitation?

    Hi NREL,
    According to your description, my understanding is that the people picker column with multiple values was missing in Word Quick Parts.
    This is by design that we are unable to use the fields which is allowed multiple selections.
    As a workaround, you can use a text field(Single line of text) to store the multiple values of the people column. When you create a document, start a workflow to update the text field using the values of the people column, then use the
     text field in Word Quick Parts.
    You can do as the followings:
    Open your library, and create a new column using Single line of text.
    Open your site with SharePoint 2010 Designer, create a workflow based on your library.
    Add the action “Set Field in CurrenItem”, and set it like the screenshot.
    Set the Start Options is “Start workflow automatically when an item is created”.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Overlap Buttons? Can you select 2 objects with one click?

    Hi I am trying to create a menu of a map for a client. They would like a text list of cities down one side and also dots over each city on the map.
    I have set the highlite groups to change the colour of the text but I would like to also set the menu so that when selecting the city in the the text area the coresponding dot over the city changes as well?
    As the cities are all ove the place and some quite close together i keep getting the buttons overlapping. Ive tried merging the layers so text and dot are together but it keeps overlapping and im not sure how, if i can, get it working?
    Product Version: 3.0.0.268
    DVD Devices Installed:
    HL-DT-ST DVD+-RW GSA-H53N (Firmware B104)
    Dell Precision PWS490 Intel Xeon Dual 5120 @1.86ghz 3.00gb RAM windows XP SP3 3TB raid storage
    Thanks in advance

    Hi Dave,
    The only way to do this with Encore that I know is to use a series of duplicate menus and the auto-activate feature.
    So when the audience navigates to a particular city's text, the auto-activate feature automatically executes a link to an exact duplicate of the menu they were just navigating, and displays the highlighted city text and a highlighted city dot. The dot won't actually be part of the button on the new menu, but it will look like it is.
    This technique involves careful pre-planning and a lot of linking work. It is easy to get lost in the links if you don't have a proper flowchart drawn on paper and if you don't use good menu-naming conventions.

  • Can you add an image to a title slide in iMovie?  So you can show your information and a picture, almost like powerpoint

    I want to add a picture to an imovie title slide, similar to a powerpoint presentation.  Does anyone know if this is possible?  Thank you.

    maxberm wrote:
    I want to add a picture to an imovie title slide, similar to a powerpoint presentation.  …
    a) … use Powerpoint.- You can export from it as a Quicktime.mov, import that to iMovie and proceed.
    b) prep that whole frame in any pic-processor (I prefer Pixelmator); use for example the MacOS-included Preview.app to create a 'composition' of pic and text.
    by preparing the pix-composition in a designated paint.app, you're allowed to do much more complex 'layouts' than iMovie offers…
    Plus: you can create 'phases', in my example: create a pic with background only, with Einstein only, and with Chaplin added; apply dissolves: pics appear!
    … you can create astonishing effects by using prepped pix.... ! Think a little outside iMovie…

  • Can you add a calendar event by clicking on a date? (ipad iOS7)

    I just updated to iOS7 on my ipad and am trying to use the calendar.
    I find it surprising that I cannot touch a date to add an event. Is this how it always worked?

    In week or month view, you have to tap and hold down on the date until you see New Event appear. You have to select the month before you can add an event - as gas as I can see anyway. In other words, you cannot tap and hold down on a date in year view and go directly to that day.

Maybe you are looking for