Is it possible to downsize a large image on the server side (before serving it to the user)?

One of the banes of my existence is resizing the same image several times because of the various contexts it appears in. For example, the main image in an article will appear bigger than it will on the index page, where many article teasers are placed. Then there's the image that goes in the Facebook "share" og. Then there's... you get the idea.
Same image, different contexts, lots of Photoshop resizing, lots of files to keep track of... but I save on bandwidth.
On the flip side, I can target the same (large) image and simply downsize via traditional HTML (width/height) on the browser end, but that will mean downloading a file that is 50-75% larger than what is actually needed. If the front page teaser displays a 1280px image at 500px, that's a huge (and potentially costly) waste of bandwidth.
HOWEVER...
If I could do the same thing on the SERVER side... in other words, tell the server to take only the pixels it needs from the (large) image and serve only THOSE to the end user... then the same image could be used in each and every context, and only the necessary bandwidth is used.
Is this do-able? If so, what is the process formally called, and where would I begin to learn how to do it?
Thanks!

That's amazing. I didn't think it was possible without saving files on the server first.
This will suit my needs just fine, but allow me to push my luck even further with the following "hail mary" question : would it be possible for the server to serve the PNG with a width of 100% of the container? In other words, the behavior would mimic width=100% but the server would still only serve as many bytes as are needed to fill that space.
Not only would I not have to create separate files for every resize (we fixed that problem with your suggestion) but I wouldn't even have to customize every link to a specific size.
I'm not expecting an affirmative on this one, but it was worth asking. =)

Similar Messages

  • Is it possible to start JSON Service specific to the user session?

    Is it possible to make JSON service to start different sessions of BusinessLogic Code in short - Is it possible to start JSON Service specific to the user session?
    Here is what I'm trying to do. I have a created a Configuration Model which contains the business logic. I want to start this model as a JSON service, and the user will interact with this model via mobile App developed using ADF Mobile. The JSON sevice has two calls
    /startConfiguration/{model_id}
    /getConfiguration
    Both of them return the string that indicates the BusinessModel being started by JSON service.
    When invoked " /startConfiguration/{model_id} " from two different browsers (Chrome - started first, FF - started second) for the same model_id (simulating the scenario of two user accessing same model), it did returned two different 'configuration' object strings, indicating that each call started its own Configuration.
    However, when I validated that the session started is user specific by calling "/getConfiguration"  it return same 'configuration object string - which is the second call from FF. Thus indicating that I cannot have JSON service tied individually to each user session. 
    My goal is to have JSON service specific to each user session. Is this possible?

    Hi,
    what is a JSON service? JSON is an object notation used with REST services. So I assume you have a REST services that returns JSON and you now want to obtain the same identifier for a specific input string? REST services - like all Web Services - are stateless and if you want to associate a request with a specific context then you need to pass a token or similar with the request so the context can be re-established. In your case I would have a look at the code mapped to startConfiguration/{model_id} to verify if the method checks for an existing configuration with the provided ID. Chances are that its the code returning the wrong ID. In general I would go with a token approach.
    Frank

  • Is it possible to Install Oracle Apps without having the user in a group db

    Can we Install oracle 11i with the user oracle:dba for db tier and user aapl:aapl for application tier.
    Is it possible to Install Oracle Apps without having the user in a group dba

    Can we Install oracle 11i with the user oracle:dba for db tier and user aapl:aapl for application tier.
    Is it possible to Install Oracle Apps without having the user in a group dbaI would say no, as the dba group is required to do the database administration tasks.
    What is the point of not using the dba group? Any specific reason?
    Thanks,
    Hussein

  • How to scan large images with the CanoScan 9000F Mark II

    I kept getting this error:
    ScanGear
    You are trying to scan an image exceeding 100 MB.
    Reduce image size or switch off the thumbnails view mode,
    when you want to scan this image.
    OK
    I couldn't find the fix anywhere online but I eventually figured it out myself. I'm posting it here so that other people don't have to waste time figuring it out.
    The fix is to click the button in toolbar in the upper left corner of the ScanGear window. The icon looks like a photograph and a slide. The tooltip when you hover over it says "Switches on/off the thumbnails view mode".
    This will switch the preview window to showing the entire scan area but you can still zoom in to adjust the scanning rectangle by clicking the magnifying class button in the toolbar.
    There is another setting you may want to change in order to be able to scan even larger images.
    - In the Canon IJ Scan Utility, click the "Settings" button.
    - Click ScanGear in the list on the left.
    - Check "Enable large image scans".
    - You can also set the JPEG and PDF compression levels from here by clicking the "Settings" button.

    Hi Riley!
    So that the Community can help you better, we will need to know the computer operating system you're using (Windows XP/Vista/7/8 or Mac 10.x). Any error messages or other details you'd like to give will also help the Community better understand your issue.
    Thanks and have a great day!

  • Can I design a web page to use the background image from the user's installed persona?

    I build web applications, and I would like to have an application use the background image from whatever persona the visitor has installed, if any. Is this possible, using css/js/html?

    No that is not possible with code on web pages (userContent.css could probably do this).<br />
    The persona is only used as the background for the user interface (toolbar) area and not for websites.<br />
    The dimensions of the persona with the height of 200px is also not enough to cover a page.

  • Certain websites like Craigslist show a scrambled, blurry security word image that the user has to type into a field in order to submit an ad. With Firefox, the word doesn't show up in the field. I have to open Explorer to accomplish this task.

    When a user posts an ad on Craigslist, they are sent an e-mail with a link. Clicking on this link brings the user to a page where the ad content can be checked, and the last step is to retype the scrambled security word into a field. When I'm on Firefox, this word (which I'm assuming is an image file like a .jpg or a .bmp) does not appear.
    I just had this same problem on a website called Sailing Anarchy when trying to register a new account.

    If images are missing then check that you aren't blocking images from some domains.
    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * Check the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * Check that images are enabled: Tools > Options > Content: [X] Load images automatically
    * Check the exceptions in Tools > Options > Content: Load Images > Exceptions
    * Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key).
    If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    There are also extensions (Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Possible to use rollover caption & image at the same time?

    If a user points to an area on the screen I want a caption to display (with voiceover) AND an image to display elsewhere on the screen at the same time. Is this possible? Is seems as though, because of the layering of objects on the screen, this cannot be accomplished?

    Hi Karin
    This is normally where one would consider using a Rollover Slidelet. Basically you roll over one area and a second area is revealed. The second area would then contain the image as well as the caption.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Is it possible to put a custom image in the main working area of Access to replace the norml gray?

    Hi,
    I'm working with Aceess 2007 and Later.
    I would like to put a personal image as a background of the main windows of Access instead of the built-in gray.
    Is it possible? And how?
    Thanks, Lauro
    PS: My serches reached only a
    Lebans solution which is no more working

    I did this once using a BUNCH of Windows API calls,
    this article:
    http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/SSubTimer/article.asp
    and this utility:
    http://www.vbaccelerator.com/home/VB/Code/Libraries/Subclassing/SSubTimer/VB6_SSubTmr_Binary.asp
    Not for the faint of heart. You might be better off with a tabbed interface where the background is always covered with forms.
    -Tom. Microsoft Access MVP

  • Re: How to scan large images with the CanoScan 9000F Mark II

    Oh my goodness!!!!! THANK YOU SO MUCH!

    Hi Riley!
    So that the Community can help you better, we will need to know the computer operating system you're using (Windows XP/Vista/7/8 or Mac 10.x). Any error messages or other details you'd like to give will also help the Community better understand your issue.
    Thanks and have a great day!

  • Question about image preview in client side before upload the image file to server

    Hi everyone:
    My project has an image upload function. Currently it only display a fileupload component, after user press OK, the file will upload to server, but there's no preview before user press OK.
    I want it can show the preview, I know that I can upload the file to a temporary directory on server then show that image to client, but in this way will cause strain on server. Is there any other ways to preview the image? Like using JavaScript? Thankyou.

    Stuck with BMP

  • Is it possible to setup a different language for the user account?

    Hi,
    My server is in English but many of my users will use French.
    Can I setup in WGM a different language (international) for the user?

    The settings are changed in at least three locations for a user account. Changes are made to ~/Library/Preferences/.GlobalPreferences, ~/Library/Preferences/com.apple.HIToolBox.plist, and ~/Library/Preferences/ByHost/com.apple.HIToolBox.<MACAddress>.plist. There are a lot of keys in there that get changed and might vary between 10.4.x and 10.5.x -if you have a mixed OS environment. So while you you may be able to import the first two into WGM, the last one might be the most trouble as it's machine specific.
    If you gave access to the 'International' System Prefpane, it wouldn't affect anything but the student account since their prefs are saved to a network location or to their local PHD account. Changes would revert to whatever the system default preferences were on logout. Those would be the prefs in /Library/Preferences.
    The 'International' System Prefpane has many listings for the other language choices that are installed on the system which could be a source of confusion for student users. Removing those resources, using certain tools like MonoLingual, can make certain software behave badly or even make the system unusable. Use with caution.

  • Problem rotating a large image

    Application description:
    A JFrame with a control panel at the bottom, which contains a couple of JSlider's which controls the scaling, translation and rotation of a BufferedImage using an AffineTransform.
    JDK used:
    1.5.0_04
    Problem description:
    The application works fine when using a "normal" sized image. But when I use a large image (1600x1200) the application seems to freeze. The GUI isn't drawn, just the infamous grey rectangle. I've narrowed it down to the rotation. If I comment out the AffineTransform.rotate call, the application works fine and the very large image is displayed in all it's glory, with translate and scale still applied.
    Is this due to some limitation of AffineTransform?

    Scale and translate would be less intensive than
    rotate.possibly, but my guess is probably not.
    If you have a world matrix that everything gets multiplied through, rotate, tranlate and scale all should be pretty fast.
    To rotate such a large image would be very cpu
    intensive and probably require a substantial amount
    of memory. You may want to check your computerAgain maybe, but IMO very unlikely. If Java uses a world matrix (and I've got no idea how else it could do things like scale or rotate) then there should be no or almost no penalty for transformations. And you certainly wouldn't need any more memory.
    performance during the operation to determine if your
    computer is being bogged down.Would be difficult to test for individual graphics operations, but you could check as to whether the CPU gets pinned while painting.

  • How to view large images ?

    i just updated my phone c601 from symbian anna to belle..may i know how to view large images in the nokia internet browser..i cant change it

    sorry,since i have just updated my mobile,i can't show you how large is it,
    but i can show you how small is it...
    even though i click 'more>view image',
    the image that shows me is just that small....
    Attachments:
    scr000001.jpg ‏102 KB

  • Button to b clicked and large image shown on the stage(link to swf file here)

    I have a button when clicked is supposed to show a larger image of the button/ I am new to the code and think if I could see and example it would help. This is a school project. I am failing as of now.
    how do I upload my files to here so I can show   http://threadcontent.next.ecollege.com/(NEXT(54b34a37e8))/Main/CourseMode/Thread/DownloadA ttachment.ed?virtualFileId=961613945&GoldenTicketParams=_u=8538800;_dt=634657009144447173; virtualFileIDs=956864518,956864621,956864990,960296914,960355361,960465721,960465764,96037 9092,961379343,960908613,961013978,961014291,961613945,961035853,961618981,961042519,96144 4490,961569920,961629398,961629452;&GoldenTicketSignature=35-AA-34-CE-10-A6-FD-4F-D1-DD-73 -4C-A9-EF-8D-9D-63-E5-87-88-FB-D4-4D-15-06-BB-82-8A-9E-F2-36-DC
    I believe this is the download link to the swf I have you can see the buttons click and sound and over and when pressed they are supposed to show the larger image of the buttons original image that you see before you hover

    stop();
    trail_btn.addEventListener(MouseEvent.CLICK,
    trail);
    function trail(event:MouseEvent):void
        gotoAndStop(10);
    and the link I gave is the download link from my class at AI Online its perfectly fine

  • Illustrator Image Trace doesn't work with large images

    Illustrator's Image Trace doesn't seem to work at all with large images.  The attached image shows the following:
    A) The original raster cropped tightly.
    B) Converting the raster with default "Black and White Logo" settings.  Results in 242 paths and 4792 anchors.
    C) Adding a massive amount of white space and then converting the raster with default "Black and White Logo" settings.  Results in 407 paths and 1620 anchors.
    For whatever reason Illustrator can't seem to handle large images.  This test shows it's not an issue with the image being too complex since all I've done is add white space and the file was saved without compression so there should be no noise.
    This type of glitch started with CS6 with the new Image Trace tool.  Is there a fix for this?  Maybe setting Image Trace into legacy mode?

    Moving to Illustrator forum.

Maybe you are looking for

  • Oracle 9i PE Installation problem on XP

    I am using Windows XP Pro on a 1.8GHz PC, with 80G hard drive. I downloaded Oracle 9i, unzipping to 3 folders, and began installation of the Personal Edition. The first disk installed without problems. However, when directed to the folder labeled Dis

  • FLASH/Captivate

    I am having an issue with Flash/Captivate. I created a drag and drop in flash and when the user drag and drops they get a result. After the result the captivate movie is suppose to go to the next slide. How can I make this happen in FLASH making the

  • N73 - Can not call contacts

    Sometimes I cant call my contacts or the caller log. This error have followed me through all the firmware upgrades, but it is still the same. The error occurs from time to time and nothing happens when I press the green button. When I open caller log

  • MOD__OSE.conf not found.

    I have installed 9iAS on windows 2000, after successfully installed , when i try to start the apache it's giving an error, fopen: no such file or directory. apache: could not open document config file d:\oracle\isuites\apache\apache\conf\mod__ose.con

  • Mac mini will not boot.

    My Mac mini simply displays a spinning icon at boot time.  The hard disk is busy but no indication of what may be happening in the background.  If the system was performing a File System Check, would it tell me?  I don't know if I should give it time