Resize question for gallery

I need to run a slide show in "kiosk" mode where the image
takes up as much of the screen as possible. The screen will be set
to 1024 x 768, so basically I need to make sure the images either
show at 100% because they fit, or reduced to about 85% because I
know some of them are too big for kiosk mode.
We are hoping to avoid having to create a sub-library of
images that are resized down to 85%.
Yes, I know resizing in the browser will cause degredation,
but the max size of each image was decided on before we dreamed up
the kiosk mode. So, new images going forward will be resized to the
right size, but we can't resize the existing ones.
QUESTION: Can Spry handle the task of resizing an image to a
max height? Or can it only spit out what I put in?

Hi dbonneville,
If your XML has the image widths and heights embedded in it,
you can use an onPostLoad observer on the data set to run through
each row of the data set to constrain the image width/heights to
the proper dimensions.
Something like this:
var dsPhotos = new Spry.XMLDataSet("photos.xml",
"/gallery/photos/photo");
dsPhotos.addObserver(ConstrainPhotoDimensions);
function ConstrainPhotoDimensions(notificationType, notifier,
data)
if (notificationType != "onPostLoad")
return;
var maxWidth = 200; // Change this to whatever you want.
var maxHeight = 200; // Change this to whatever you want.
var rows = dsPhotos.getData(true);
var numRows = rows.length;
for (var i = 0; i < numRows; i++)
var row = rows[ i ];
var w = parseInt(row[ "@width" ]);
var h = parseInt(row[ "@height" ]);
var ratio = (w > h) ? ((w <= maxWidth) ? 1 :
maxWidth/w) : ((h <= maxHeight) ? 1 : maxHeight/h);
row[ "@width" ] = w*ratio;
row[ "@height" ] = h*ratio;
--== Kin ==--
P.S.
I just typed that in real-time, so I haven't actually tested
it in a real browser.

Similar Messages

  • Resizing question for importing photos to ipod

    hi
    i was wondering if the ipod resizes images when i import them.
    i used to resize them manually (in photoshop) for 720x480 before i imported onto the ipod through itunes.
    now i have several hundred i want to load and they are 2272 x 1704 pixels and several megs apiece. so instead of batch resizing them in photoshop, i was wondering if itunes/ipod will resize and optimize the file size or does itunes/ipod resize the image for "display only" and keep the original file size the same. i would like to have the images optimized for disk space so i can put more photos and music on it
    thanks
    lawrence
    1.33 ibook g4   Mac OS X (10.3.9)  

    iTunes does optimise photos before they are transferred to the iPod (you can see a message in the window at the top of iTunes as it does it). It does not change the dimensions of the photos to fit the iPod screen, but it does reduce the resolution and file size. It also creates a very small version that you can see when there are multiple images on the iPod screen
    If you select the option to include the originals in iTunes it will then store the original file, a version optimised for the iPod screen and the tiny little thumbnails as well.
    Ian

  • Does Photoshop Elements 12 do setup for Gallery Wrap for canvas printing?

    Does Photoshop Elements 12 do a setup for Gallery Wrap for canvas printing?
    is there a plug-in available?

    You shouldn't need a plugin if you follow the steps from the video linked to below that should work in photoshop elements 12
    http://www.breathingcolor.com/blog/how-to-create-a-mirrored-edge-for-a-gallery-wrap/
    Two command are in different places in photoshop elements
    Image>Resize>Canvas Size
    and
    Image>Transform>Free Transform

  • Resizing images for idvd

    Hello,
    I've not yet tried to resize images yet . . . I've just opened idvd and bring the pics in. Most are in the 1.5 to 3.2 mg size. When burned to dvd and viewed on tv (4:3) they are passable. Maybe a little soft.
    A post said, "Reformat your images to 100 dpi by the screen size (720x540 pixels for 4:3 TV aspect ratio or 854x480 pixels for 16:9 aspect ratio)."
    Question: Is the 720 the width or height? So what about portrait shots? All my shots show 72 dpi in Photoshop. Are this suggesting that I increase to 100 dpi?
    Thanks for help.

    Resizing them probably won't do anything since iDVD resizes them for you. However I guess there is the change that when iDVD resizes them down to the proper TV screen size, it doesn't do as good a job compared to you doing it in Photoshop, so I guess worth the experiment (please report back your findings).
    720 is the horizontal size, but you don't want to use that. You want to use 640. 640 square computer pixels are equal to 720 "rectangular pixels" on a TV. iDVD will do the conversion from 640 square pixels to 720 "rectangular pixels" for you. If you make it 720 on the computer, then iDVD will still convert it and distort your photo.
    I put "rectangular pixels" in quotes because a normal TV is an analog device so there are not really "pixel" but an analog signal.
    Ignore the DPI or PPI (dots per inch or pixels per inch) setting. That setting means absolutely nothing when displaying on a TV or on a computer monitor. It is a printing specification, so it doesn't matter what you set it as, it will look the same on the computer or the monitor (e.g. 640x480 at 72 dpi will look exactly the same as 640x480 at 100 dpi). All you care about are the absolute number of pixels (such as 640 by 480) in the photo.
    Patrick

  • Jpeg resize question:

    As it's been suggested, resizing photos for an SD project to 1000 X 750 pixels seems to work quite well, yielding nice videos. 
    However, is there a suggested size for reducing images to be used in a widescreen HD projects that some will in turn be cropped to 16 x 9 to fit the screen?
    Thanks,

    P1965
    What version of Premiere Elements do you have and on what computer operating system it is running?
    What are the original pixel dimensions of your photos? How many of them will be in use in the Premiere Elements project?
    Is the Premiere Elements Timeline destined for DVD-VIDEO Widescreen on DVD disc, AVCHD format on DVD disc, or Blu-ray disc format on Blu-ray disc?
    The classical response to photo sizing is often seen as SD not to exceed 1000 x 750 (landscape orientation) and HD not to exceed must more than 1920 x 1080. But, with versions like 10, 11, or 12 on Windows 7, 8, or 8.1 64 bit, those recommendations, I believe, can be stretched somewhat depending on the level of computer resources and number of photos involved. But, remember, that however high the resolution is, the end product will have the resolution inherent in the end product specifications.
    If photos are 3:2 and destination is a 16:9 one, I would go for cropping and resizing before import into Premiere Elements. If photos are 16:9 and destination is a 16:9 one, then I would go with resizing before import into Premiere Elements.
    Pending further developments, I would look at photos 1920 x 1080 brought into a Premiere Elements 11 or 12 project with project preset manually set for
    NTSC
    DSLR
    1080p
    DSLR 1080p 30 @ 29.97
    or
    its PAL counterpart
    And, then the burn to disc to DVD-VIDEO Widescreen on DVD disc, AVCHD format on DVD disc, or Blu-ray disc format on Blu-ray disc.
    Please review. Any questions or need clarification on anything written, please do not hesitate to ask.
    Thank you.
    ATR

  • Beginner ? on resizing vector for uses outside Illustrator

    Slowly weaning myself off of MS PP for graphics.  One reason is so I can resize images for use in apps like Word.  I don't think I want to resize within Word so knowing how to do it in IL is the direction I'm headed (albeit as a beginner).
    The example is an image made up of mostly point type, one area type, and a few rounded rectangles.  I have it layed out on a 11x8.5 page (although it actually uses about 6x8.5.
    My thinking is to select all, grab a corner, hold down the shift key, and drag.  My first question is: am I getting the advantage of vector (i.e. quality resize)?
    Second, is there a way to control the final size as a percentage (for example) of the original selected area?  This question is because I may, in some cases, have a target size in mind.  For example, in the Word case, if I save the IL file as a picture and insert it into the document, Word already does some resizing (to fit the page dimensions (I assume).  In this case, the result is an image 23% of the original size (according to Word).  That's still a bit too big for my purposes.  I'd prefer 15% of the original.
    Is there some tutorial on how to do things like using the vector capabilities in IL to resize to a final object size.  I realize I may need to crop along the way.  I'm interested in the process and thinking behind it.
    Thanks
    Tom

    Tom,
    Honestly, I haven't read this whole thread in careful detail, but I really think the best advice would be for you to first, fully describe the kind of content you are trying to deliver and what you want the recipients to be able to do with it; second, map out a workflow for your intended purposes; and only then worry about the how-to specifics and the collection of software tools.
    Here's what I read:
    You have been using PowerPoint as your generic drawing tool. That, and your descriptions so far, suggest relatively simple graphics (lines, boxes, elbows, text, simple polygons). In short, it makes me wonder if you even really need a program like Illustrator at all.
    You want your final deliverables to be editable by your recipients. That alone goes a long way toward ruling out the native formats of Adobe applications, their expense, and their learning curves. It's a common practice in both business and mom & pop general use to treat native Office files as if they are some kind of "universal editable exchange format," just because they are so ubiquitious. You can't make that kind of assumption with graphics-production apps (like Adobe's). You can easily over-complicate things by deciding up-front that you need to jump into that arena. Are you an author, or do you really want to embark on a designer career? Look, if you're not designing for mass commercial reproduction, you may be entirely off-base thinking you need to involve Adobe apps at all.
    You are now straining to find a workflow which will "upgrade" your vector graphics (with a program like Illustrator) while still retaining the full editability of your deliverables in a format that mom & pop America knows how to deal with.
    Here are some basic things you may not be considering from a practicality standpoint:
    Programs like InDesign, Illustrator, et all (regardless of their "me, too" re-purposing in recent years for web-centric work) were created for commercial reproduction (i.e. printing in a PostScript environment). It is completely impractical to try to use their native files as any kind of "universal" exchange format for use by a general public--especially if you want your deliverables to be editable by recipients not equipped for or skilled in their use.
    PDF effectively makes the final content of documents created in graphics programs deliverable as is. Its basic purpose is to make documents created in pretty much anything readable by those without the authoring programs, while maintaining fidelity to the appearance of the final document. It's not really meant for overal editing like in the native program that created the document. If you want PDF to be your target final deliverable product, then fine; you can produce more sophisticated PDFs by doing your authoring work in graphics apps. But you'll be sacrificing the kind of native editability you are accustomed to with your current Office-based workflow.
    Office programs are from another world. They don't talk PostScript. They don't worry about things like halftones and color separation and all kinds of other print-world esoterica. They're not as detail-sophisticated as dedicated drawing programs in things like finely-controlled Bezier path drawing. They don't natively support the same paths and constructs contained in Illustrator artwork.
    Adobe's own "recommended" format for incorporating Illustrator artwork into Office applications is not vector at all; it's PNG, a raster format. That's what the Save For Office feature in Illustrator is all about. That fact alone should tell you alot about what you are getting into when you want to use AI to routinely populate Office documents with vector artwork from Illustrator.
    Office apps do, however, exist in the real workaday world, and do therefore provide general-purpose means by which to incorporate text, raster, and vector objects for constructing graphics.
    You have mentioned concern for vector scaleablilty several times. You seem to be unaware that even Office programs do in fact have their own graphics model for vector graphics. On Windows, that's what formats like Windows Metafile (WMF) and Enhanced Metafile (EMF) are all about. Those are the kinds of objects that are created by the various drawing tools that reside in not just PowerPoint, but also in Word, Excel, Access, et all.
    Don't think that you can't create professional-looking results in the Office applications you are already familiar with. "Professional" results is more a matter of design skill and artistic discernment than software. (Believe me, far more amateurish work is created in Illustrator than "professional" work.) It sounds to me (especially since you have been using only the drawing tools in PPT) like you may not have really explored the graphics capability that already exists in the Office applications you are using, and which you really want to use as your fully-editable deliverables anyway.
    In helping you devise a suitable workflow, I would ask you questions like these:
    Describe (and show examples) of the most "sophisticated' kinds of graphics that you envision needing to routinely include in your deliverables.
    Describe the level of editability that you want your recipients to be able to perform.
    Describe the functional content of your deliverables. For example, do you want your deliverables to contain live, editable spreadsheets that your users can use as "calculators" or "what if" graphs? Do you understand that while you can build some forms-based interactivity in PDFs, doing so is a relatively painstaking and esoteric process, whereas in Office applications, its pretty much a copy/paste affair?
    Have you fully explored the drawing feature sets in Office applications? Do you really understand their capabilities and limitations?
    JET

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I have a new email address and my old email keeps coming up on icloud when trying to update apps and i don't know the password or security questions for the old email. I can sign in with my apple id which is tied to another email but not itunes how to fix

    I have an apple id and it has my current email attached to it. however when i go to update apps it's asking for the password for an old email. I no longer have the old email and can't use it. when I go to icloud on my ipad it asks for the password for old email. it doesn't allow me to change the old email to current. when i go to reset it i can't remember the password or security questions for the old email so it doesn't let me go any further. How do I fix this? Do i need to call apple support?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • I am having trouble answering my old security questions for my itunes account and it is creating a problem because I am not able to purchase apps/songs on my new IPAD. What phone number/email adress should I call to get a quick response to my issue?

    I have recently bought an IPAD 2 for my girlfriend and have encountered a problem with purchasing apps through my itunes account. It is requesting that I not only enter my pasword (which I know) but answer my old account questions, which I have forgotten the answers to. It had since locked me out of changing my questions for eight hours. Is there any number I can call to prove that I am the real owner of my itunes account so my girlfriend will be able to use her ipad to purchase new apps without having to go through the trouble of using one of my other apple devices? Random information: I believe my questions were set back in 2007 when I purchased my first ipod nano, since then I have used this same itunes account for my own ipod touch and ipad 2 and my girlfriends iphone 1st generation. I have never run into a problem regarding my questions before on any of these devices

    http://www.apple.com/support/itunes/contact/

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

  • Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.   When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and

    Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.
    When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and last name).
    I changed the computer name in Preferences/Sharing to a new name and Preferences/Accounts to just be Mike. I can right click on my account name, choose advanced, and see that everything looks right.
    However, If I do a scan of my network with my iPhone using the free version of IP Scanner, it lists my computer as First-Lasts-MacBook-Pro! And it lists the user as First-Last.
    So even though another Mac just sees my new computer name, and my home folder is Mike, somewhere in the system the original setup with my full name is still stored. And it's available on a network scan. So my full name might show up at a coffee shop.
    Can I fully change the name without doing a complete re-install of Lion and all my apps?

    One thought... you said the iPhone displayed your computer's old name? I think that you must have used the iPhone with this computer before you changed the name. So no one else's iPhone should display your full name unless that iPhone had previously connected to your Mac. For example, I did this exact same change, and I use the Keynote Remote app to connect with my MacBook Pro. It would no longer link with my MacBook Pro under the old name, and I found that I had to unlink and then create a new link under the new name. So the answer to your question is, there is nothing you need to do on the Mac, but rather the phone, and no other phone will display your full name.

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    1)  Apple ID: All about Apple ID security questions
    Torrifromny wrote:
    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file ?
    2)  See Here.  Apple ID: Contacting Apple for help with Apple ID account security
    Ask to speak with the Account Security Team...
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • I can't reterive sequerity question for my apple id

    i can't reterive sequerity questions for my apple id
    <Email Edited by Host>

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (97539)

  • Can anyone help or answer this question for me. Is there a way to have a private album for pictures sent to my phone? Don't exactly want kids ( niece and nephew ) to play on my phone and see private pictures of my girlfriend

    Can anyone help or answer this question for me. Is there a way to have a private album for pictures sent to my phone? Don't exactly want kids ( niece and nephew ) to play on my phone and see private pictures of my girlfriend

    What about this?
    https://itunes.apple.com/ru/app/best-secret-folder/id488030828?l=en&mt=8

Maybe you are looking for

  • Time line out of whack

    Ok. The red line marker in the the time line that indicates where the position of the playing head is not the same position as the main viewing screen. I click and highlight a clip in the timeline and a different one further down the line is displaye

  • Missing Page Sizes

    I have been seeing this problem both in Lion and Snow Leopard. For some users, when they use a specific printer driver, no paper sizes are available, only other. These are Xerox printer drivers but I don't see any reason why this problem is specific

  • I need to my adobe toolbar on Word 03

    How can I get my adobe toolbar to show on Microsoft Word 03 ??

  • Cant accept shared scripts

    Every time I try to accept a shared script I get an error saying I already have the script in my projects, but I dont.  Anyone else have this problem or a way to fix this?

  • Failed Alert window when application loaded from SWFLoader

    For example i've created two simple application. Parent application must to load another child application Main.mxml <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"                xmlns:s="library://ns.a