Safari on iphone won't render cgi generated png images with query strings

I've got a cgi app functioning as a web service that generates png images and serves them up as part of another app which marshals them up in HTML.
Here's the image stand alone:
http://cybre.net/maps/mapgen.pl.png?WIDTH=1024&HEIGHT=768
and here's how I marshal it:
<IMG CONTENTTYPE='image/png' SRC='http://cybre.net/maps/mapgen.pl.png?WIDTH=1024&HEIGHT=768'>
It seems to work on firefox, epiphany and galeon web browsers for linux, and my windows friends say that internet explorer renders them okay as well.
My only apple hardware is my iphone, and safari pretends that there is no content when it renders the HTML page. Safari on the iphone does not render even using a direct link.
The png is generated by perl mapscript, $img = $map->draw;
print "content-type: image/png\n\n";
$img->write;
close(STDOUT)
On the previous version of the iphone firmware, and before i factored the image generation out into a web service, the iphone was able to render the png image successfully.
Is this safari wierdness where it gets cranky that there is
QUERY_STRING info after the .png? mapgen.pl.png?foo=bar ?
If so, are other browsers just being hyper liberal in what they accept and safari is playing by the rules or is this a bug in safari?
thanks in advance,
-marc

it turns out that safari's handling of png is broken, the problem reproduced on both iphone and mac safaris.
in changing the format to gif, it all works okay.
does apple allow mortals to file bugs against safari?

Similar Messages

  • TS2776 I changed computers, now my iphone won't sinchrionize either calendar or contacts with Outlook

    I changed computers, now my iphone won't synch either calendar or contacts with Outlook. I'm sure there is a quick fix for this, but I haven't been able to find it.
    Any suggestions?
    Run the diagnostic tool, says I am not an administrator

    Did you migrate  your user folder/profile from old computer to new computer?

  • IPhone: How to get the original photo image with  Picker

    Hi!
    I'm trying to pick and send (via HTTP) the original image taken by the camera, the 1,600 x 1,2000 image that's available in iPhoto after syncing.
    As far as I gathered, the UIImage doesn't help me here, since it's scaled down to 640x480, probably to safe memory. But one should supposedly be able to access the underlying CIImage.
    Here's what I'm doing right now:
    I'm setting up an ImagePickerController in my
    - (void)viewDidLoad
    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    [self refreshView:self];
    and process the picked image with
    - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingImage:(UIImage )image editingInfo:(NSDictionary )editingInfo
    CGImageRef imgRef = image.CGImage;
    CGFloat owidth = CGImageGetWidth(imgRef);
    CGFloat oheight = CGImageGetHeight(imgRef);
    NSLog(@"Original size = %f %f",owidth,oheight);
    NSData imageData = [NSData dataWithData: UIImagePNGRepresentation(image)];//(image, 1.0)
    However, I still get the following output:
    2008-07-25 11:44:58.543 myApplication[1564:20b] Original size = 640.000000 480.000000
    Obviously still scaled down - but there must be a way to access the original.
    What am I doing wrong?

    Yes, I'm trying on the iPhone, as the camera is unavailable on the simulator.
    Here is the code I'm using:
    // In my main code, to initialise the picker
    UIImagePickerController *picker;
    // Check if camera is available
    if ( ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] )
    UIAlertView *alertView = [[UIAlertView alloc]
    initWithTitle:@"Can't access camera" message:@"The camera is unavailable!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil ];
    [alertView show];
    [alertView release];
    return;
    picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    picker.delegate = self;
    [_myView addSubview:picker.view];
    [_myView performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
    // The delegate methods
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
    NSLog( @"Image dimensions: %fx%f", image.size.width, image.size.height );
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    }

  • Apache - CGI script can't read query string from STDIN

    My Perl CGI script begins as follows:
    if ($ENV{'REQUEST_METHOD'} eq "POST") {
    read(STDIN,$in,$ENV{'CONTENT_LENGTH'});
    I dumped all ENV variables at entry, and verified that REQUEST_METHOD = "POST" and CONTENT_LENGTH = 73 (which is correct). QUERY_STRING is null. After the above read statement, $in is still null. Any idea why STDIN is not providing the query string?
    Thanks!
    Chap
    867MHz Powerbook   Mac OS X (10.4.8)  

    Hi--
    This isn't really an answer to the question you asked, but is there a reason you aren't using the Perl CGI module? It's installed by default on OS X and makes this kind of stuff much, much easier. Just add a line like this at the top of your script:
    <pre class="command">use CGI qw(:standard);</pre>Then you can get the paramaters for your script like so:
    <pre class="command">my $value = param('paramname');</pre>No muss, no fuss. You can get more information at the CPAN archive page for this module.
    charlie

  • Safari on iPhone won't open a Yahoo or Google Search result....

    If I use Google iphone app or Yahoo iPhone app and touch on a result, normally it would launch Safari and bring the page up......now Safari opens and just freezes at "Connecting"....close the page and things are fine but the page found via Google or Yahoo never does load unless the address is loaded directly into Safari or I use the search field in the Safari top nav bar???

    it turns out that safari's handling of png is broken, the problem reproduced on both iphone and mac safaris.
    in changing the format to gif, it all works okay.
    does apple allow mortals to file bugs against safari?

  • Bridge CS4 won't output to pdf multiple images with same filename

    Hiya...my googling efforts have thus far failed!
    I've got CS4, and in Bridge, I created a New Smart Collection to find all filenames in a folder containing "." or ".jpg" - which in turn searched through all the subfolders like what you used to be able to do in Photoshop CS3.  Very simple stuff, but all the images are jpg's, but in multiple folders (I don't want to move them out of the folders, as the files came from an external source, and there are heaps of folders, and I don't want to pdf each subfolder seperately as it will take forever).
    The problem is that some of the files have the same filenames (again I'd prefer not to rename, as it happens a lot on this project, and they are all over the place).  So whilst Bridge will show the thumbnail images correctly in the content tabbed screen in my New Smart Collection, but once I've done the Output to PDF thing, for example, instead of showing both different images it has pdf only the first image but repeated it twice.  And this happens multiple times throughout the pdf, the more times the same filename is used, the more times the first image gets repeated.
    I know that it is messy to have multiple similar filenames, but why can't bridge just place the image anyway?  It allocated a space for it on the pdf and does show it in bridge, it just doesn't seem to survive the transfer to pdf well.
    The only other thing that I have done is use the below link (which was posted on another adobe forum thread) to create a custom pdf output template (nothing too fancy, just number of rows / columns, size, font etc).  But I've tried using the standard bridge templates and it does the same thing.
    http://www.proficiografik.com/2009/08/03/save-custom-pdf-output-template-in-adobe-bridge-c s4.html
    Any help would be appreciated...even if to tell me that I am being unreasonable!
    UPDATE 16/11/09
    Just to let you know that I seem to have resolved the bug inadvertently with one of the Adobe updates. The below is the link for the AdobeOutputModule-2.1-mul-AdobeUpdate.zip which was released on 2/19/2009 - which allows for headers & footers to be placed in the Ouput pdf. I finally installed it today, and everything seems to be working fine now (i.e. I can pdf multiple images with the same filenames and the pdf will actually show each different image rather than repeating only 1 of the images).
    Must have been a fix installed in the contact sheet templates that get installed with the update - not sure why the original version was corrupted, but I've left that with the Adobe guys (I submitted a bug report - and they were able to replicate the problem but hadn't fixed it as yet).
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4228
    Message was edited by: djtun71 (16/11/09)

    When I click import from disc I am asked to choose a disc and then I get this message:
    The following photos will not be imported because they are already present in the catalog. To see these photos in the catalog select 'Show in Library' (the import will be canceled).
    This is followed by a long list of images. If I click 'Show in Library' I can see all the images with the same filename. And then they start to automatically write over those images with images from the disc. However they keep the same metadata and keywords from the previous images. If I click on Import and deselect the "don't reimport suspected duplicates" box, it imports only the images that don't share filenames and none of the images that do.
    Is there a way of setting the "Don't reimport suspected duplicates" box in preferences?

  • Hello, I've updated the iPhone I have got I have a problem I hope you respond to some of the applications no longer work, such as the safari and skype and many applications are no longer working with the ios7.0.4

    Hello, I've updated the iPhone I have got I have a problem I hope you respond to some of the applications no longer work, such as the safari and skype and many applications are no longer working with the ios7.0.4

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove apps from Recently Used (multi-tasking) list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hey lozza567,
    Thanks for the question. I understand that you are experiencing issues sending MMS messages. The following resource may provide a solution:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Issues with sending and receiving MMS
    You will need these to send and receive MMS:
    - An iPhone 3G or later.
    - iOS 3.1 or later.
    - A cellular data connection. MMS isn't available if you are using only Wi-Fi.
    - A domestic MMS plan from your cellular provider. You may need an international messaging plan to send MMS to an international contact. Contact your carrier for more information.
    - A roaming MMS when using a cellular provider's network different from your billing cellular provider's network. Learn more about roaming and contact your carrier for more information.
    To resolve issues with sending and receiving MMS, follow these steps first
    1. Go to Settings and turn airplane mode off.
    2. Go to Settings > Messages and turn MMS Messaging on.
    3. Go to Settings > Cellular and turn Cellular Data on.
    4. Go to Settings > Cellular and turn Data Roaming on if you are roaming on a cellular provider network different from your billing provider's network.
    5. Verify that you have a cellular data connection in the status bar at the top left of your iPhone.
    6. Go to Settings and turn Wi-Fi off. Open Safari and navigate to www.apple.com to verify that you have a data connection. Turn Wi-Fi back on to continue using Wi-Fi for other features. If your cellular data connection isn't available, follow these steps.
    7. Verify that you can send and receive SMS. If you are unable to send and receive SMS, see the "Issues with sending and receiving SMS" section, above.
    8. MMS may not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports.
    9. Restart your iPhone.
    10. Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    11. Reseat your SIM card.
    If you are still unable to send or receive MMS, follow these steps
    1. Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    2. Go to Settings > Messages and turn on group messaging if you are sending a group message.
    3. Make sure that you are using the area code with the contact's phone number. When sending messages internationally, you also need the contact's international code.
    4. Verify a "Pay as you go" MMS plan has enough available balance. Contact your carrier if unsure of your MMS plan or available balance.
    5. If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    6. If the issue occurs with a specific contact or contacts, delete and re-create the contact from the Contacts application. Create a new message to the newly created contact and try again.
    7. Back up and restore your iPhone as new.
    8. If your carrier has recently ported your phone number, the porting process may not be complete. Contact your carrier to confirm that the porting process is complete.
    9. Contact your carrier to verify that you are provisioned to send SMS and are in an area with cellular coverage.
    10. Contact your carrier to verify that there are no blocks or filters placed on your wireless account preventing you from sending SMS.
    11. Your carrier may require APN settings to be modified to use MMS. Learn more about when you should adjust APN settings.
    Thanks,
    Matt M.

  • Iphone won't connect to wifi

    My iphone won't connect to my home wifi. It say's connected but when i try and go online it say's unable to connect. I've tried forgetting the network, turning wifi off and on. The ip address is ok and my laptop connects ok.
    Has anyone got any ideas about how i can fix it?

    I am having the same issues as GirlyGirl.  Every other day or so my iPhone 3GS won't connect to wifi.  Before I was showing the wifi signal as if it were attached but I couldn't surf Safari.  Now even though under the wifi settings it shows I'm connected, I don't get the wifi fan showing I'm connected.  I've done the following:
    Renewed lease
    Forgotten network
    Reset Network Settings
    Reboot my iPhone
    Two days ago when I rebooted the router and Reset Network Settings it started working correctly.
    I've been working with my internet provider, they tell me my firmware on my 2wire is up to date & the issue is definitely with my iPhone.
    Security Settings:  WPA-PSK (TKIP) and WPA2-PSK (AES)
    My iPhone is attaching to the 169.x IP Address and the Subnet is 255.255.0.0. The router, DNS and Search Domains are blank.
    Also to note, I changed the name of my device through the gateway router so I could identify it more easily.  As of today it had defaulted back to the old name which is the ip address. Even if I don't change anything it isn't keeping those settings.
    Other than restarting my router and taking everything down for 15 minutes each time, what else can I try? 

  • IPhone won't send iMessage (even when signed on Wi-FI or 3G)

    My iPhone won't send iMessages even when I try to connect through Wi-Fi or 3G. At first I thought it was my Wi-Fi but it wasn't since I can connect to programs such as Safari and Instagram. I have also reset my network settings. Can someone help me or have any idea how I can fix this?
    Thank you!

    Phone is not jailbroken.
    Got it re: passcode lock.
    If I do a system restore, but I restore as a new phone, will my crucial phone functionality remain intact (phone number, ability to make calls, etc.)? And when it's restored, do I then just do a sync to have all my data brought back into the device?
    Sync settings for calendar and contacts are enabled properly, and are the same as they have been for years. I'm not sure it's the calendar or contact data that is corrupted (although anything is possible) because the sync problems started happening exactly when the iMessage problems started happening.
    Please advise on the system restore (not from backup) and I will post my results. Just wanna make sure I'm not doing anything irreparable.
    Thanks...DG

  • Media Encoder CC  won't render Magic Bullet Denoiser II

    Hello there,
    i've got the following Problem: I am having Premiere CC and used the Red Giant Plug-In Denoiser II on my last project, when i import this project to the Media Encoder and select Quicktime for output, the Media Encoder won't render the clip with this Plug-In. i always get the original files out, without the denoiser. Original footage from in premiere is 2,5k CinemaDNG RAW from the Black Magic Cinema Camera.
    thx

    I feel like there was a recent update to the RG plugins (inside of the last 30 or so days.) Are they up to date?

  • IPhone won't sync/mount in iTunes

    I just noticed that my iPhone won't mount in iTunes. The iPhone makes the "i'm plugged in and charging" noise and shows the charging screen but never goes into sync mode.
    I've rebooted the phone, laptop, and even tried two other cables still to no avail.
    I'm also not sure if this happened after installing Snow Leopard because I only plug my iPhone into my laptop once a week and usually just walk away while it backs up and syncs.
    Any suggestions? I can't even restore my iPhone.
    Message was edited by: Michael Velasquez II

    Try reinstalling itunes on top of the current itunes (do not uninstall itunes),

  • My iphone won't allow me to get apps from the store i have changed my region but it says my postcode is wrong

    My iphone won't let me get apps from the store and it says my country is not valid I have changed it and it says my postcode o wrong

    Also see the link below.
    http://support.apple.com/kb/HT5018?viewlocale=en_US

  • My iphone won't allow me to transfer any music. A lot more problems follow in the below paragraph

    Hello all,
    I really appreciate any help and advice I can get.
    First my iphone won't allow me to drag music over to it. I'm old school and I like to drag specific tracks over to my iphone. iTunes won't let me do that. I have tried creating a new playlist and syncing again but still I can't do that. Any help or ideas?
    Also, I keep getting the message that "x number of items could not be synced. See iTunes for more information". What does this mean???? I read some where that clearing the photo cache can help. One problem, I CAN'T FIND THIS PHOTO CACHE!!!!! Where is this thing. I read that you need to click "go" on the iTunes menu. My menu doesn't say go. What's going on? How to i find the iphone photo cache and get rid of that annoying message?!?
    Also, before I get to any of the stages above, sometimes during syncing on iTunes with my iPhone 4S, it keeps getting stuck at "waiting for changes to be applied". Once again, anyone have ideas about how I can overcome this?
    Please I need someone to go on before I throw this phone into the thames.

    Is your iPhone restricted?  Check Settings > General > Restrictions

  • My iphone won't download apps when connected to wifi or 3g, this includes apps previously on the phone any ideas?

    My iphone won't download apps when connected to wifi or 3g, this includes apps previously on the phone any ideas?
    It goes to download then stops just showing the cloud and arrow

    Yes we are connected.  I even tried by connecting to the computer thru iTunes.  It is not working for either of us.  Just says unable to download at this time.  I was able to connect and restore my apps from my old iPhone buy it won't let me add new ones for do update on the old apps.

Maybe you are looking for

  • Drop Zone Editor

    I can not re order the positions of images in the drop zone editor. Instriuctions say to click and drag an image to a new position but this is not working for me. Is anyone else having this problem? --ken

  • Help with Services from dropdown

    Hi everyone, Everytime I try to use "services" - from the Safari toolbar (Click Safari, then Services from dropdown) I get many of my applications. The one I would frequently like to use is "Grab" but it's never highlighted as working. THe word Grab

  • IPad Air not resizing images properly

    Just picked up and iPad Air this morning. It's acting strangely.  When I try to set a photo for wallpaper, it's not sizing it properly.  I have even tried resizing images in a photo program, but that doesn't help.  Anyone?

  • Process proc=runtime.exec("sh","-c","//home//usr//mkdir abcd") not working

    my servlet calling the above line is not executing to make a directory "abcd" at specified location. i am using Mandrake Linux and Tomcat... can anybody expalin the error.

  • How can i disable my ipod

    how can i enable my ipod-forgot my passcode...now i disabled it