WordPress.org

Ready to get started?Download WordPress

Forums

Title name of uploaded pictures (14 posts)

  1. multimule
    Member
    Posted 2 years ago #

    Hi guys,

    Whenever I upload a picture the title name is set to "DIGITAL CAMERA". How can I change it to be automatically the filename, such as "P12341.JPG"?

    This would be pretty more unique than the current one.

    Thanks

  2. multimule
    Member
    Posted 2 years ago #

    Anyone?

  3. Jan van Dank
    Member
    Posted 2 years ago #

    Interesting thing. Can this be done?

  4. tigtog
    Member
    Posted 2 years ago #

    Without knowing more details, it sounds like you are uploading directly from your camera? That's generally a bad idea, because that's way over-the-top resolution for displaying on the web, giving you larger-than-necessary files that take a long time to display to your readers.

    Most digital cameras these days come with the manufacturer's own image management program, which should allow you to play around with your photos in various ways, including exporting them to another folder at closer to web-resolution with modified file names.

    I suggest running your images through this sort of program before you upload them.

  5. Jan van Dank
    Member
    Posted 2 years ago #

    Hi Tigtog,

    You're right. I upload them directly from the camera. But that's not a problem as the images are not in high resolution but only 2MP.

    Even when I use a photo software to resize them it would not solve the problem of the filenames.

    Somehow WordPress changes the filename to "DIGITAL CAMERA" rather than using the filename of each image e.g. P123410.jpg.

    And this is what I want to change.

    Greets

  6. orschiro
    Member
    Posted 2 years ago #

    Any new approaches?

  7. tigtog
    Member
    Posted 2 years ago #

    Even when I use a photo software to resize them it would not solve the problem of the filenames.

    Why not? When you save the resized version to a folder on your computer then you should be able to give the image a whole new name, which ideally should be somewhat descriptive of the picture. Descriptive file names are easier to search for for reuse and better for SEO. Then when you upload the resized version from your computer, WordPress should use that new filename.

    That's normal procedure anyway. But of course, it should be using the allocated filename from your camera too, and I don't understand why it isn't.

  8. orschiro
    Member
    Posted 2 years ago #

    Unfortunately not even then.

    I give you this example: http://nz.orzanna.de/2011/09/13/test/

    The gallery contains two identical images. The first one I edited and gave it the name test.jpg. Its URL is http://nz.orzanna.de/wp-content/uploads/2011/09/test.jpg.

    WordPress automatically sets the title to OLYMPUS DIGITAL CAMERA.

    The second image is the original one. Its name is P90400031 and its URL is http://nz.orzanna.de/wp-content/uploads/2011/09/P90400031.jpg. However again, the title is set to OLYMPUS DIGITAL CAMERA.

    This is the behaviour I do not understand. Why doesn't WordPress take the file name for the title?

  9. tigtog
    Member
    Posted 2 years ago #

    The important thing I'm seeing is that the WP image file-slug itself *is* taking the individual filename assigned to the image. The title-field defaulting to "DIGITAL CAMERA" is thus an annoyance, but only that, since you can easily edit it.

    I suspect that when you are resizing/retitling your images etc you are not choosing the "save for web" options - thus your EXIF data is being retained as image metadata and that is causing the title-field to take "DIGITAL CAMERA" as the default.

  10. orschiro
    Member
    Posted 2 years ago #

    Of course I can edit the title but it would be already enough that WP takes automatically the file name for the title name. But obviously that is not possible.

    To your second part. I do not have any option "save for web", at least not with GIMP.

    Regards

  11. tigtog
    Member
    Posted 2 years ago #

    Of course I can edit the title but it would be already enough that WP takes automatically the file name for the title name. But obviously that is not possible.

    It should be very possible, because that is the default behaviour and that is what it does for nearly everybody else. Something about the way that your camera formats your images is telling WordPress to do something different, and until you figure out what that is, then WordPress will not behave normally ie the way you want it to. This means that you will have to fix the difference at the camera end, or at least at the image editing end.

    To your second part. I do not have any option "save for web", at least not with GIMP.

    There is a Save For Web plugin which mimicks that Photoshop functionality, but I don't know how good it is. You can also definitely make sure that when you save your resized version of your image as a JPG that you do *not* save the EXIF data, just in case that is the problem with why WP is not behaving normally for you. It might not be, but it's something that's pretty easy to test.

  12. jk25rs
    Member
    Posted 2 years ago #

    I think I know why you're getting this error as I have just run into a similar problem. It seems WordPress is naming the image based off the IPTC field labeled 'Description' . It seems your camera may be putting in its name into the IPTC Description field. To view/edit the values of these EXIF/IPTC fields you can see it through a photo editing software, I am using Adobe Bridge to do this.

    Also to note, it seems it only changed the name to the Description when the description is under a certain amount of characters, too big of a description it will just use the image name.

    Hope this helps!

  13. orschiro
    Member
    Posted 2 years ago #

    Thanks for this update jk25rs.

    For now I accepted the file name as given since I do not want to change the IPTC field for every image.

    However, I still would prefer that WordPress would take care of this by not using the IPTC field but rather the file name for its labelling.

    Regards

  14. jk25rs
    Member
    Posted 2 years ago #

    Just to note, you can change the IPTC fields in bulk quantity with Adobe bridge, so if you set them all to blank WordPress should pick up the img name as the title as it does by default. Give it a shot, shouldnt take more than 5 mins!

Topic Closed

This topic has been closed to new replies.

About this Topic