6230i bad jpeg filename suffix - spurious " charac...

I have received a MMS (picture) from a Nokia 6101 on Vodafone (my mother's), to my 6230i on Virgin. I can view the text and image in the MMS. If I view the details however the file is called Image001.jpg"
A spurious " character has been appended to the '.jpg' suffix of the image file.
Because of this I am unable to save the image as the 6230i auto-appends the existing file suffix which contains an illegal character - the phone shows an error message 'Cannot use /:\*,?;"|<>¥↲'
I am unable to view MMS in PC Suite - they do not show up. So I'm basically stuck. Not a serious problem just a little annoying. Is there anyway I can hack the phone memory directly to delete the " or rename the image ?
If I put a Virgin SIM in the 6101 & send to my 6230i (Virgin) this does not happen. So I don't think either phone is the culprit & I'm wondering about some issue with transmission from Vodafone to Virgin - MMS gateway - if such a thing exists ?
Any suggestions gratefully received beyond contact customer support for the networks - I'll do that when I get a chance.
TIA,
DBMessage Edited by dvbdvb on 30-Dec-2005
03:16 PM

Vodafone say its not their problem as MMS sends/receives ok on their network.
Virgin have tried to help but so far are at a loss. As the Virgin network is really T-Mobile, I don't know how much Virgin themselves can do.
Why I think its the phone is that even though the network may be the cause, the phone should deal with it.
If I forward the MMS with the extra " out of the phone to my web email it comes through fine. So it is able to parse/transmit the message just can't interpret the filename itself when trying to save the image.

Similar Messages

  • Exporting a file, can I set a custom filename suffix, similar to lightroom?

    Hello,
    In Lightroom you can specify a custom filename suffix string, so when I export a file the filename has my suffix. Example: DSC_1234_lr.jpg
    "lr" being my custom suffix.
    Is there a similar feature in Photoshop?
    Thanks,
    Mark

    This script gives you that option...
    http://www.scriptsrus.talktalk.net/PP.htm

  • EXPORT TO JPEG WITH UNIQUE BOOKMARK AS FILENAME

    I have a fifty page document and each page is bookmarked with a unique name. I'd like to export each page as a jpeg and have the resulting jpeg filenames reflect their corresponding bookmark name. By default, acrobat saves each file with master document name with an appended number.
    Any tips?

    You can't go from a page to it's assigned bookmark, but you can execute a bookmark. So you need to scan and execute all bookmarks, exporting the selected page each time.

  • Created jpegs but now they want TIFFs, how can I avoid a re-shoot?

    Hi All.
    I shot loads of images as jpegs as requested. Now the customers says actually I'll need them in TIFF!! As the shoot went on I exported the images to 34 folders with 56 subfolders containing 751 jpeg images. I now need to supply exactly the same but with TIFFs. Now I still have the raw files in my C: and it would be lovely to simply re-import them and export them as TIFFs but without looking at every single raw file and finding where ever the corrosponing jpeg is I have no way of exporting the new TIFFs to sit alongside their jpeg counterparts, if you see what I mean? Is there anyway I can utilise/batch process the raw files and export them to right folders as TIFFs?
    Many thanks

    Right after I posted I realized I probably had that wrong, but couldn't take it back .
    Anyway, if the jpeg filenames were derived from metadata in the raw files (even if not keywords), this will be fairly straight-forward. If jpeg filenames were typed in one-at-a-time, then not so straight-forward.
    So, assuming the jpegs were renamed, how were those names generated? by hand??, or by machine???......
    Summary:
    ========
    The objective is clear: we need to "reverse map" the jpegs to the raws... however, in order to know how to reverse map, it would help to know how they were mapped in the first place.
    Yes, you may be able to find a 3rd party app to actually do image comparison, but we're trying to see about doing it in Lightroom first, or at least I am...
    R

  • Inserting filename and page numbers into multiple PDF files?

    Have since seen this thread, BUT still interested in the syntax of the code
    to insert filename and page # into multiple files:
    http://forums.adobe.com/thread/951925?tstart=0
    Good Evening (GMT!)
    I have approx 100 PDFs with one or two pages in each, they are English translations
    of Russian language test certificates and the formatting/feel of the originals is lost in
    the translations. The only real link between the two sources is the "_RUS" and "_ENG"
    filename suffixes and the common leading filenames otherwise. Thus I need to maintain
    a record of the filename in any page I print off, should there be a need to refer back to
    the original if the translation is open to artistic licence.
    I have a script (below) that happily adds a page x/y and filename into the active file,
    what I would like is to be able to do this insertion into multiple files as defined by a
    portfolio or a selection via a select files dialogue box
    I am quite out of my depth now as my past skirmishes with JavaScript have set
    cookies and tweaked a few other browser doodads in webauthoring
    Any help most appreciated on this one...
    Kind Regards
    Dr B
    Southampton
    UK
    NB the filename inserted may be corrupted as a result of my last tweakings
    will sort that one out ASAP....
    ================================
    // SetRemoveFooter
    // Modified as marked
    // Menu item generation
    app.addSubMenu({ cName: "Footer",cUser: "Set/Remove Complex Footer", cParent: "File", nPos: 20 });
    app.addMenuItem({ cName: "Set Filename", cParent: "Footer", cExec: "SetFooter(1)"});
    app.addMenuItem({ cName: " -> Set Date .... centered", cParent: "Footer", cExec: "SetFooter(2)"});
    app.addMenuItem({ cName: " -> Set Date .... right", cParent: "Footer", cExec: "SetFooter(3)"});
    //add page x of y
    app.addMenuItem({ cName: "Set Page ", cParent: "Footer", cExec: "SetFooter(4)"});
    app.addMenuItem({ cName: "Set Both", cParent: "Footer", cExec: "SetFooter(5)"});
    app.addMenuItem({ cName: "-------------------------------", cParent: "Footer",cExec: "{}"});
    app.addMenuItem({ cName: "Remove Both", cParent: "Footer", cExec: "RemoveFooter(5)"});
    app.addMenuItem({ cName: "Remove Date Time (Filename)", cParent: "Footer", cExec: "RemoveFooter(1)"});
    app.addMenuItem({ cName: "Remove Page", cParent: "Footer", cExec: "RemoveFooter(4)"});
    //=====================================================================================
    //Set/remove Footer
    function SetFooter(ARG)
    var re = /.*\/|\.pdf$/ig;
    var FileNM = + this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "dd/mm/yyyy"
    var Box2Width = 100
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
    if (ARG<=3 || ARG==5)
    {var fd = this.addField("xftDate", "text", p, [30,15, TotWidth-30-30,30]);
    //print output?
    fd.value = util.printd(AcDateFormat, AcDate) + " (" + FileNM +")";
    // TEXT SIZE SETTING
    fd.textSize=12; fd.readonly = true;
    if (ARG==1){ fd.alignment="left" };
    if (ARG==2){ fd.alignment="center" };
    if (ARG==3){ fd.alignment="right" };
    if (ARG==4 || ARG==5)
    {var bStart=(TotWidth/2)-(Box2Width/2)
    var bEnd=((TotWidth/2)+(Box2Width/2))
    var fp = this.addField(String("xftPage"+p+1), "text", p, [bStart,30,bEnd,15]);
    // print output?
    fp.value = "Page: " + String(p+1)+ "/" + this.numPages;
    // TEXT SIZE SETTING
    fp.textSize=12; fp.readonly = true;
    fp.alignment="center";
    //==========================================================================
    function RemoveFooter(ARG)
    if (ARG<=3 || ARG==5) {var x = this.removeField("xftDate");}
    if (ARG==2 || ARG==5) {for (var p = 0; p < this.numPages; p++)
    var x = this.removeField(String("xftPage"+p+1)); }
    will

    Putting this in a batch file within the automation function of Acrobat
    delivers the goods, I need to investigate the formatting of the output to
    get them to line up, have taken the middle ground and gone for a central
    position for the page x/y text...... some lines are redundant
    Dr B
    ===========================================
    var re = /.*\/|\.pdf$/ig;
    var FileNM = this.path.replace(re,"")+".pdf";
    var Path = this.path;
    var AcDate = new Date();
    var AcDateFormat = "yyyy/mmm/dd  HH:MM"
    var Box2Width = 50
    for (var p = 0; p < this.numPages; p++)
    var aRect = this.getPageBox("Crop",p);
    var TotWidth = aRect[2] - aRect[0]
           var fd = this.addField("xftDate", "text", p, [30,15,
    TotWidth-30-30,30]);
           fd.value =  FileNM;
           fd.textSize=12; fd.readonly = true;
           fd.alignment="left";
    var bStart=(0);
    var bEnd=(TotWidth);
           var fp = this.addField(String("xftPage"p1), "text", p,
           fp.value = "Page: " + String(p1) "/" + this.numPages;
           fp.textSize=12;  fp.readonly = true;
           fp.alignment="center";

  • Image filename description in PDF

    Hi,
    I have a converted powerpoint file which is showing up the original jpeg filenames when you mouse over the images in the PDF which i would like to remove or edit as they are just nonsense rather than a proper description.
    I have looked in acrobat but I cannot find where it shows them up, can anyone help on this please,
    I am using a PC version of version 9.
    Ta muchly
    Simon

    Hi Dean,
    Here is a sample of the image issue: https://acrobat.com/#d=EGVpC0TT2iHGyNXPUqWmCw
    You can create/drag buttons from the Object Library onto the page. Then in the custom appearance you can set the fill and border to the look and feel you want.
    In LC Designer, make sure that in the File > Form Properties > Defaults tab, you set 'preserve script changes' to automatic.
    Also the object should have a 'normal' or 'name' binding in the Object > Binding palette. It depends on which version of LC Designer you are using.
    When deploying forms it is important to consider what your users will open the form with - Acrobat or Reader. Here is a summary of what features are available depending on what the user has and whether the form has been Reader Enabled:
    A summary and PDF is here:
    http://assurehsc.ie/blog/index.php/2010/05/using-livecycle-forms-in-acrobat-and-reader/
    There are two ways to Reader Enable the form: using Acrobat OR using the full server product LC Reader Extensions ES2. Come back if you need more info.
    Good luck,
    Niall

  • How to display JPEG in JSP w/o IMG tag?

    I have a working application where a jpeg image is ecoded on the server via a JavaBean. The bean is then forwarded to a JSP, which gets the unique jpeg filename from the bean and displays it with an html <IMG> tag. All's fine and well, but I'd like to get away from having lots of image files laying around on the server and just display the image encoded in the current request. I tried creating a custom tag to encode and display the jpeg using the com.sun.image.codec.jpeg.* package in this manner:
    ServletResponse res = pageContext.getResponse();
    OutputStream os = res.getOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(os);
    encoder.encode(imageRef); //-- imageRef is instance of BufferedImage
    and in the JSP:
    html, other tags, etc.
    <graph:image imageRef='<%= imageBean.getImage() %>'/>
    The image displays, but nothing else in the JSP (ie. html, other custom tags). In all other tags I've written, JSPWriter is used for output, but I need an OutputStream for the createJPEGEncoder() method.
    Can anyone tell me if what I want to do is possible? I'm chasing my tail at the moment.
    TIA Mark

    Would this work for you:
    Create the IMG tag in the JSP with the SRC as a servlet.
    Also, add any parameters you may need to tell the servlet what image to send back.
    Something like this:out.print("<IMG SRC=\"/servlet/ImageProducerServlet?WhichImage=");
    out.print("MySpecialImage");
    ...The ImageProducerServlet can be setup to send back the JPEG image file.

  • Maintain RAW filename when renaming in Lightroom

    When renaming files in Lightroom 1.2 when you are exporting files how do you keep the original RAW filename in Metadata? I cut DVDs of my files after they are downloaded and want to be able to tell what the original filename was before it was renamed in the event I'd have to go back to the Raw file.
    I want to use name and a sequence number for the new filename [EX: rb-101, rb-102, etc. where rb is the clients initials followed by a sequence starting at 101]
    The reason I want to rename in Lightroom is to keep the files in the order I manually place them since my cameras don't always sync capture time exactly. If I just export them without renaming, then I have to start over in Bridge to sort them again before renumbering in CS2.

    Rob,<br /><br />Clicking F2 in Lightroom invokes the Filename Template Editor.<br /><br />One of the options is "Original Filename". That can be invoked at anytime so that should sort your query out.<br /><br />However, personally, I always like to have the original 4 number sequence tagged to every photo no matter what format the photo is.<br /><br />So, original camera filename of 73XX1234 becomes: "CLIENTNAME assignment 1234" <br /><br />Every version of the photograph will have this same name so can be searched inside or outside of Lightroom by a dozen different variables without even needing the Metadata.<br /><br />To set this up go to the Import dialogue and in the File naming Template area, click on Edit.<br /><br />My default setting is:  <Custom Text> <Filename suffix><br /><br />Click OK and then enter the text you want at the front of the filename.<br /><br />You can change the name at any stage by selecting pictures in the Library, clicking F2 (or Menu>Library>Rename) to invoke the Filename Template Editor and proceed as above. <br /><br />Cheers,<br />Adrian

  • Missing file number suffix metadata when exporting

    Hello All,
    I export files from Lightroom 2 (LR2) using custom filenames that include file number, i.e. "Original number suffix", metadata. This metadata is not being picked up by the export module and will therefore not be included in the exported filename. This happens with files that have been edited in Photoshop (CS3), but not with the original DNG files.
    So if I have a master file named "Davison-20080809-1234-Master.psd", I in Lightroom 1.x (LR1) I set up a custom filename scheme in the export dialogue box that will export the master as "Davison-20080809-1234-BW-Web.jpg", or similar. This has worked with no problems to date.
    In LR2, when I look at the Example field under File Naming in the Export dialogue, I see only "Davison-20080809-BW-Web.jpg"--the original number suffix is missing along with one of the hyphens around it. When I create a custom file naming scheme with only the "Original filename suffix" metadata in it, it shows "_.jpg" in the Example field.
    It looks like maybe two things are happening.
    In LR1, if a piece of metadata was missing, it would still export a filename with all the hyphens around the missing data, so I would get "Davison-20080809--BW-Web.jpg" if the number suffix were missing. Someone probably tweaked that in the new version of Lightroom so that the unsightly double hyphenation would not appear. So this doesn't look like it's related to the problem.
    The second thing that appears to be happening is that Lightroom 2 is either not exporting (in file metadata) or not tracking (in the LR catalogue) the number suffixes. I've looked for the number suffix in Photoshop's metadata and it's not stored in the metadata at all. When I copy a Photoshop file with a suffix that does export correctly in LR2, rename the file "Test-20080809.psd" and import it into LR2, Lightroom parses the date (YYYYMMDD) as the number suffix and "20080809" is what I get when I export that file. This indicates that LR1 and LR2 store the number suffix in the catalogue and for some reason LR2 is not preserving the number suffix in the catalogue metadata when a file is edited in Photoshop.
    So has anyone else run into this problem? Or is someone interested in reproducing it? It looks like a bug to me.

    I'm also running into this same problem. For what it's worth, when I import my RAW files (as DNGs), I rename them using a naming scheme which looks like the following:
    (2008-08-13) -019- (7108).dng
    This scheme is created with the following elements (separated by line-breaks):
    custom date formula
    import number
    original file suffix
    In Lightroom 1, I had no problem. Now, I'm wondering if the parenthesis after the end of the file suffix is what's causing Lightroom 2 to think that there is no suffix?

  • Jpeg to gif conversion

    Hi;
    I want to convert jpef or png images to gif format, but I have a problem.I'm using a gif encoder and normally I can convert jpeg files to gif files when jpeg files are 256 colors.
    When I try to convert 65000 or more coloured jpeg or png files it gives error and said gif files can not contain more than 256 colors.
    How can I change the loaded images color?Decrease to 256?
    Regards
    Murat

    A gif can only have 256 colors, trying to put more colors in it is an error.
    If you want more colors use png.
    Converting a jpeg to a gif is normally a bad idea. Gif and png compress drawing good, but photos bad, jpeg is the opposite.
    So gif->jpeg normally gives you a file that is a lot bigger for the same quality.

  • "convert colors" causes jpeg compression?

    I recently had to re-install Acrobat, and since doing so whenever I run my preflight profile which is set to convert spot colors to cmyk, it's also apparently increasing the jpeg compression at the same time. Everything seems to be gaining bad jpeg artifacts after the color conversion (even when the colors being converted have nothing to do with the images).
    It may be unrelated, but it also seems to be creating all sorts of ICC profile non-cmyk colors in the process. I.e., before "convert to cmyk for digital printing" I run a preflight that simply checks for non-cmyk colors. This profile warns me that there is a Pantone color in the ad. I check the separation preview and find only one or two things with Pantone colors. I then run the convert fix. The Pantone colors go away, but now there are sometimes dozens of items that are showing up as ICC profile colors, and this seems unfixable. I can't create a profile to convert them.
    What's going on? Are there settings somewhere that can select the degree of (or lack of) jpeg compression? Why is it compressing the file at all? I have no such setting selected in the preflight profile. I tried creating a profile that does absolutely nothing at all but convert to cmyk, and it's still causing these problems.
    This is using Acrobat 8. It's the same version, same disks, we used before, but these problems are new. I may have a setting wrong somewhere.

    You are not making sense, and your methodology is fundamentally flawed.
    Hitting Command+S without editing the file is NOT "saving".  It's not doing anything at all.  The program just idles.
    You can verify this by observing that the file's modification date does not change.
    Even your limited but flawed methodology will show the degradation if you change even a single pixel before hitting Command+S.  Then you will be degrading the image.  Just make a one-pixel change, for instance with the pencil tool, then save.  That is the same as doing a Save As.
    Note that in your original query you were indeed changing a file by converting it to a different color space.  THAT is a change.
    Independently from the above, your methodology of comparing two layers blended in Difference mode has the inherent limitation of the monitor's performance in displaying the shadows.  Your monitor, no matter how high-end, will NOT show you a difference between a 0,0,0 pixel (R,G,B,) and 0,0,1 or 1,0,0 or 1,0,1 for instance.  SAme goes for 1,0,2 etc., until you reach the lower threshold of your particular monitor.
    There are two preferred methods of comparing two layers to see if they're identical.
    Comparing allegedly identical images in Photoshop
    The first one, championed by the late, lamented author and guru Bruce Fraser, is as follows [direct quote by copy and paste]:
    A better way of comparing images with identical pixel dimensions is to use [Image menu >] Apply Image… > Subtract with an Offset of 128.
    Difference only shows pixels that are lighter in the source than in the target (or maybe it's the other way around—I forget) where Subtract with Offset 128 shows differences in both directions.
    Pixels that are identical in both images come in as RGB 128 gray, those that are different come in at a value that exactly reflects how different they are.
    It also makes it much easier to spot subtle differences…
    === ===
    The second one was suggested by someone in the Color Managament and Photoshop Windows forums, which follows:
    (NOTE: only the methodology is of interest and pertinent, not the questionable context in which it has brought up and used.)
    * 1) Open the two images to be compared in Photoshop
    * 2) Move one image as a layer over the other one
    * 3) select "Difference" as blending mode in the layers palette
    * 4) now the whole image should appear seemingly black on the monitor
    [So far this is the traditional, "time honored" method.]
    * 5) select the magic wand tool with these settings: Tolerance: 0/ Anti-alias: no/ Contiguous: no/ Sample All Layers: yes
    * 6) click somewhere into the formerly gray area
    [This refers to an image of a Color-Checker type of card that had wide gray border around it. The test, therefore, requires a pure gray image in the image, something highly unlikely to change, in order for the magic wand to select all pure-black images (255,255,255). Such a border can easily be created around an image by increasing the canvas size and filling the newly created space with pure gray (128,128,128). ]
        Explanation: you just selected all completely black pixels (0,0,0) i.e. all pixels that are identical in both layers.
    * 7) you should see "marching ants" forming rectangular patterns
    * 8_) invert the selection (Shift Command I)
       Explanation: the selection now covers all the other pixels, i.e. all pixels which are different between both layers.
    * 9) create a new empty layer and select it in the layers palette
    * 10) set the foreground color to white
    * 11) fill the selection with white (Alt+backspace on Windows, accordingly on Mac)
    * 12) set the blending modes of all layers back to normal
        Explanation: you now see all identical pixels in their respective color and all different pixels in white.
    This method is a lot more sensitive than the traditional one which stops at step #4 above.
    Finally:
    jfraze wrote:
    Wow, the level of hostility is amazing on these adobe forums…
    Only because people like you come in here itching for a fight, rather than to seek help.  It's just the way you choose to react—and to intereact with others.
    Wo Tai Lao Le
    我太老了

  • Converting TIFF to JPEG with sips, then import into iPhoto problems

    I am cataloguing a box of slides and negatives for my family. The scanner generates huge TIFF files (on purpose), and I have an Applescript that then uses sips to copy them into low quality JPEG files using this command:
    do shell script ("sips -s format jpeg -s formatOptions low -s description " & "'" & "Original path: " & (POSIX path of an_image) & "'" & space & (POSIX path of an_image) & " --out " & new_file)
    where an_image is the source file, and new_file is the path and name of the converted image.
    This way, I can save the original file path as the image's description while shrinking the file size to speed up later importing into iPhoto. As part of the iPhoto import, that description from the metadata is placed in the on screen comment section for each image.
    This works fine to do the initial shrinking, but less than half of the resulting jpeg files can subsequently be imported into iPhoto. I get this error:
    The following file could not be imported. (The file is in an unrecognizable format.)
    And yet, Preview and Safari both open the files with no problems.
    Is there anything else I need to set when doing the conversion with sips to make it easier for iPhoto to recognize the converted files?
    I have over 1000 images, and anticipate a final total of about 2500 when I am done. These are images of myself and my siblings from the 1960s and 1970s, and my idea is to scan them all at high resolution, and use the converted, smaller files for iPhoto for keywording and Faces to get them organized, while retaining the paths to the original images. Any commentary is appreciated.

    I have uploaded one of the bad JPG files here:
    www.mrcodeboy.com/smith/Try.jpg
    I tried examining the metadata with exiftool, Image Events, and mdls, but there are a number of differences between the TIFF metadata and the JPEG metadata structures. I found no obvious differences, but this is a good idea, and I will continue to examine those closely for clues.
    *EDIT*
    I downloaded the bad JPEG above onto a different machine; it still does not import into iPhoto. However, by invoking sips on that file to convert it back to a TIFF file thusly:
    sips -s format tiff Try.jpg --out TryTF.tif
    it imported just fine. There has to be some sort of parameter that is NOT being addressed in the conversion from TIFF to JPEG that is somehow messing this up, yet is preserved when the file is re-written as a TIFF.
    Message was edited by: casdvm

  • Locate RAW files from JPEG selects HELP!!!

    Hi all,
    So I have 21 folders of RAW CR2 images and I've been asked to pluck 3280 CR2 files from these folders. My guide for doing so is a set of 21 folders that contain 3280 JPEG selects. So I need to grab RAW versions of all of these selects from a massive pool of photos. If I was to do this manually then it will likely take days. I'm wondering if there is any genius out there who knows a way of doing this with automator or a similar piece of software?
    To make matters slightly more complicated, the RAW CR2 files have duplicate names across the 21 folders so a general search of a file name based on the JPEG results in multiple files coming up. There are obviously no duplicates within each of the 21 folders though. So what I need is a way of automatically searching through each of the 21 RAW folders individually using the JPEG filenames as reference, to copy the matching CR2 files to a new location. then repeat that automation 20 more times right?
    Please if anyone has insight here it would be hugely appreciated and save me days of work! I'm at my computer doing this manually all day so if anything is unclear then please ask and I will clarify.
    Thank you all for your time!
    Ben

    Are you using Aperture?  When you say "folder" do you refer to Folders in Aperture or folders in Finder?
    What do you mean by "JPEG selects"?  Images in Aperture have no specified file format until you create a new file by exporting.
    If everything is in Aperture, what you want should be possible.

  • Getting DPI of a JPEG with JAI

    I need to get width / height in cm or inches and the DPI of a JPEG using JAI.
    I'm currently getting the width and height in pixels using getWidth() and getHeight() of a RenderOp, but it apparently hasn't similar methods to get the DPI (which will suffice).
    I'm still seeking into all of the JAI classes, but i'm kind of lost within it.

    The reason why i want to try to do it with JAI is the following.
    We have a huge collection of JPEG images, that our customer creates daily.
    To retrieve image size and resolution, i initially had used a public domain class, whose source is identified by this header:
    * ImageInfo.java
    * Version 1.5
    * A Java class to determine image width, height and color depth for
    * a number of image file formats.
    * Written by Marco Schmidt
    * <http://www.geocities.com/marcoschmidt.geo/contact.html>.
    * Contributed to the Public Domain.
    * Last modification 2004-02-29
    */It worked fine, but we discovered that it fails with JPEG our customer created before a certain date.
    Then i tried with javax.imageio.ImageIO, like this:
    Iterator readers = ImageIO.getImageReadersByFormatName("jpeg");
    ImageReader reader = (ImageReader)readers.next();
    FileInputStream source = new FileInputStream("my.jpeg");
    ImageInputStream iis = ImageIO.createImageInputStream(source);
    reader.setInput(iis, true);
    IIOMetadata meta = reader.getImageMetadata(0);
    IIOMetadataNode nodes = (IIOMetadataNode) meta.getAsTree("javax_imageio_1.0");
    NodeList nl = nodes.getElementsByTagName("HorizontalPixelSize");
    if ((nl != null) && (nl.getLength() > 0))
        xDPI = Math.round(25.4f / Float.parseFloat(nl.item(0).getAttributes().item(0).getNodeValue()));
    nl = nodes.getElementsByTagName("VerticalPixelSize");
    if ((nl != null) && (nl.getLength() > 0))
        yDPI = Math.round(25.4f / Float.parseFloat(nl.item(0).getAttributes().item(0).getNodeValue()));Same identical problem. The new JPEGs work, the old ones don't.
    In this case, javax.imageio.ImageIO throws an exception saying:
    javax.imageio.IIOException: Not a JPEG file: starts with 0x55 0x72Quite explicit. The problem is that these JPEGs are correctly rendered, without a bit of complaining, by all the browsers, by all the imaging programs we tried (Adobe Photoshop, Adobe ImageReady, Paint, whatever) and also by the preview feature of Windows Explorer. We never found a single application which complains about these JPEGs. Also the size and resolution are correctly retrieved by these imaging programs.
    If javax.imageio.ImageIO says it's a bad JPEG, it's a bad JPEG; however i'd need to make the whole thing work because of the above reason. That's why i'd like to try with JAI too.

  • Change format: jpeg to jpg

    I need to change the format of some photos from jpeg to jpg; not change the extension, but actually change the format.  It's for work and it has to be changed or it won't upload.

    Chorelle wrote:
    I need to change the format of some photos from jpeg to jpg; not change the extension, but actually change the format.
    Wikipedia: http://en.wikipedia.org/wiki/JPEG
    In computing, JPEG (/ˈdʒeɪpɛɡ/ jay-peg)[1] (seen most often with the .jpg or .jpeg filename extension) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.
    The most common filename extensions for files employing JPEG compression are .jpg and .jpeg, though .jpe, .jfif and .jif are also used. It is also possible for JPEG data to be embedded in other file types – TIFF encoded files often embed a JPEG image as a thumbnail of the main image; and MP3 files can contain a JPEG of cover art, in the ID3v2 tag.
    Older DOS-based computers were designed to handle a maximum 3-character file extension which is why JPG was attributed to compressed image files. Modern operating systems can handle longer extensions.

Maybe you are looking for