Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. In which segment of a .jpeg stores QImageWriter the data?
Forum Updated to NodeBB v4.3 + New Features

In which segment of a .jpeg stores QImageWriter the data?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 438 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PowerNowP Offline
    PowerNowP Offline
    PowerNow
    wrote on last edited by
    #1

    Hi, I want to read via Javascript the data from a .jpeg file stored before with QImageWriter. How and in which segment are these data saved?

    I searched in the commend segment (FF FE COM Comments) but i could't find any data.

    Thxs...

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      what data? the compression settings etc ?
      to produce a valid jpg file, it must save the data as expected for the format.
      So you should be able to open it like any other jpeg file ?

      PowerNowP 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        what data? the compression settings etc ?
        to produce a valid jpg file, it must save the data as expected for the format.
        So you should be able to open it like any other jpeg file ?

        PowerNowP Offline
        PowerNowP Offline
        PowerNow
        wrote on last edited by PowerNow
        #3

        @mrjj The QImageWriter was succesful because I read the data via QImageReader. The point is I have to read this data in a browser via Javascript. The data are arbitrary, currently only for testing.

        jsulmJ 1 Reply Last reply
        0
        • PowerNowP PowerNow

          @mrjj The QImageWriter was succesful because I read the data via QImageReader. The point is I have to read this data in a browser via Javascript. The data are arbitrary, currently only for testing.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @PowerNow Can you please explain what data you mean? It is really unclear what you mean and what your use case is...

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          PowerNowP 1 Reply Last reply
          0
          • jsulmJ jsulm

            @PowerNow Can you please explain what data you mean? It is really unclear what you mean and what your use case is...

            PowerNowP Offline
            PowerNowP Offline
            PowerNow
            wrote on last edited by
            #5

            @jsulm: The data are arbitrary strings. E.g. I saved them with

            QImageWriter writer;
            writer.setFileName("...jpg");
            writer.setText("key1", "Teststring1");
            writer.setText("key2", "Teststring2");
            ...
            writer.write(image);
            

            In Qt everthing is fine!
            Is it possible that they are SEPERATELY saved under the commend segment (FF FE COM Comments)?

            1 Reply Last reply
            0
            • PowerNowP Offline
              PowerNowP Offline
              PowerNow
              wrote on last edited by
              #6

              For who is interrested: The strings saved via QImageWriter are placed seperately in the commend section of a .jpeg as ascii characters.

              1 Reply Last reply
              2

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved