I was thinking of renaming every images extension to PNG but as my lap is crapped out and i am broke as hell i would have to do it on phone is there any good app on fdroid that can do it in a bulk ? Also does renaming the end from “jpg” to “png” actually change the format ? This pictures are very important to me as they have an imotionall connection to me.

On a less important is this the same for mp3’s too as i save my favourite songs in the same way as a zip file is m4a better ?

  • daniskarma@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    Renaming the files wont change the filetype.

    Also the images won’t loose quality for looking at them, opening or moving them. Only if you reapply the jpg compressing algorithm over them.

      • voracitude@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        File compression and image compression are different things. In lossy image compression you throw out some data when re-saving the file and that’s not reversible; in file compression you don’t throw data out, so it’s reversible. It’s like rewriting a sentence in shorthand. All the information is still there, and if know the shorthand you can rewrite it back to plain English again (decompressing the file).

  • Shepy@feddit.uk
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    You have misunderstood this. Saving a file from an image editor or viewer repeatedly will degrade it. Putting a single saved file in countless zips will not.

  • Norgur@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    As many others have said, only resaving the image with another jpg compression will degrade quality. What are you using to view the images with? Also, your workflow for looking at.those images/encrypting them sounds rather convoluted. May I ask why you do it that way? Is encryption important to you or is it something else? The constant zipping and unzipping sounds unsafe (so much copying, archives can corrupt) and insanely time-consuming.

    Just renaming them to PNG will change nothing at best and make your viewer unable to open the images at worst.

    • THE MASTERMIND@lemmy.todayOP
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      Also, your workflow for looking at.those images/encrypting them sounds rather convoluted. May I ask why you do it that way? Is encryption important to you or is it something else? The constant zipping and unzipping sounds unsafe (so much copying, archives can corrupt) and insanely time-consuming.

      I do it that way because i am afraid of losing my msd or someone stealing it and having full acess to its data . Do you have a better way to suggest ?

  • Atemu@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    10 months ago

    Don’t re-encode lossy formats.

    What do you mean by “save” as in “copy the file to the encrypted container” or “open the file in a picture editor and saving it”? The former won’t re-encode, the latter likely will.

    Renaming a file won’t change its content and therefore won’t change its format.

    If the pictures are important to you, make sure they’re backed up appropriately. For even remotely critical data, the rule of thumb is 3 copies across two different mediums with at least one copy at a different location.

    Re-encoding MP3s will also degrade quality. Storing them in a ZIP file won’t re-encode them though.
    Transcoding an MP3 to m4a will degrade its quality too. The opposite is also true; if you’re downloading music from Youtube for instance (M4A, OGG), don’t convert it to MP3.

    The discriminator here is whether lossy compression is applied which is distinct from lossless compression. As the name implies, it loses information in the process.
    JPG, MP3, M4A, OGG and many other common formats use lossy compression.
    ZIP and PNG use lossless compression; files added to a ZIP file can always be turned to the exact same files again from an encoding standpoint.

    • THE MASTERMIND@lemmy.todayOP
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      But i heard jpeg’s work like if you photocopy a photocopy and then photo copy it when you compress or save them. Also do read the edit

      • XEAL@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        10 months ago

        The issue you described can occur due to repeated cycles of editing and saving jpeg images and closing the editor in between.

        If i’m editing an image with an editor and I keep saving periodically as jpeg, while the editor remains with the file open, it still has the original before-degradation image so even if i save 10 times as jpeg, the final result is being compressed only once.

        However, if I save, close the editor the and then reopen the same file again for more editing, the software has to work with the “photocopy” I saved before, and is this cycle is what could degrade the image.

        When you work with image editing, you save your work in a lossless format and only export it as jpeg the final copies that you won’t be editing.

        Same goes for mp3 files.

        But remember, you can open those files anytime to watch/hear them without any degradation.

      • Fisch@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        10 months ago

        Yes, every time you compress the jpg again it will lose quality because jpg is a lossy format (Someome else already explained the difference between lossy and lossless) but putting it in a zip won’t compress it again. Since zip compression is lossless no data is lost, so you can decompress and recompress as often as you want without losing data. Same goes for png, it’s lossless too. Recompressing a jpg as a png (E.g. by opening it in a photo editor and saving at as a png) doesn’t make sense tho, the data was already lost when saving as jpg, so the jpg and the png will be the exact same picture. The png will just be a lot bigger in size.

          • Fisch@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            10 months ago

            Yes but png or jpg files take the data of an image and save them in a more efficient way inside a file. A zip file takes any file and saves it in a more efficient way. Putting a png inside a zip will compress the compressed image file but since zip compression is lossless, you’ll get the the exact same compressed image file back when you decompress the zip again. Same goes when putting a jpg file inside a zip.

  • person@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    As others have pointed out simply copying the file, or compressing it in a zip will never ever change it. It is fundamentally the exact same file. If you load it up in a photo editor (not just viewer), and resave it from there, then it might lose more quality.

    Renaming it to png changes essentially nothing about it. Most software will still recognize that it’s a jpg, and open it up as such. If they tried to open it as a png, they would fail. If you load the jpg into a photo editor and save it as png from there then it will actually change formats. But there is no point in doing this. The png’s file size will be much larger, and you can not get any of the quality back that you lost when initially saving it as a jpg.

  • RHOPKINS13@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    10 months ago

    What you’re describing is just compressing in a ZIP file. Zip files are lossless, you have nothing to worry about. When you throw a JPG in a zip file, and then extract it later, you’ll get the exact identical JPG back.

    You only have to worry about jpg’s lossy compression if you’re using a photo editor like Photoshop, GIMP, etc. “Compressing” it in a zip changes nothing. Moving or copying it doesn’t lose quality either.