Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image Browser?
#1
Is it possible to create a maintenance script that we can run that scans:

C:\Program Files (x86)\CQC\CQCData\DataServer\Images\System\*.*

C:\Program Files (x86)\CQC\CQCData\DataServer\Images\User\*.*

The out put would be placed into the HTML documentation folder structure, for example:

C:\Program Files (x86)\CQC\CQCData\HTMLRoot\Web2\CQCDocs\UIImages

The generated HTML pages would then list out each folder and image within that folder, and it's name. Perhaps somehow reference the below structure? In trying to create a UI it's pretty difficult to view what images are available altogether.

[Image: Screen-Shot-2019-06-14-at-08-35-17.jpg]


In what format are *.CQCImgStore2 images?

Happy to help write something or to help put it together.
Reply
#2
You wouldn't be able to see them in the browser probably. Though I guess it's possible the browser may just scan the file for the signature of a known image format and find the PNG content inside it.

You couldn't copy them to the HTMLRoot directory, since it won't serve them up. Just copy them to a directory somewhere else and point the browser directly at the directory and browse it that way. You can always try one that way and if the browser finds the image and shows it, then just right click on the Images\System directory and copy and then paste them into a temp directory somewhere.

You can preview of them of course. When you select an image the Preview button becomes available to see it.
Dean Roddey
Explorans limites defectum
Reply
#3
Why file type are they? PNG? How is the image packaged inside of the CQCImgStore2 format or is that proprietary?

Can the CQCImgStore2 files not be unpacked to extract the PNG (or whatever format they are in) within?
Reply
#4
The actual image data is PNG, but it's contained with other housekeeping information that allows CQC to track changes and so forth, which greatly improves performance.

They could be unpacked potentially but no tool exists to do that. It only happens internally when it has to convert the PNG data to a bitmap.
Dean Roddey
Explorans limites defectum
Reply
#5
Could the code that renders this part be re-used to create a browser?

[Image: Screen-Shot-2019-06-26-at-11-55-04.jpg]

I am currently doing an experiment to create a user interface screen that contain every image from each folder, then taking a screen shot of that and naming it to match the image folder. These are from the /System/Buttons/Gel/ folder and are in order left to right:

[Image: Screen-Shot-2019-06-26-at-11-57-28.jpg]
Reply
#6
I could of course write a program that could create such things. But it would take some doing because a lot of the images are fairly large and they would have to be scaled, but some indication made of their actual size, and many are in various shapes and how do you get those fitted reasonably well, and not just have one long vertical list of images.

With that you could perhaps, right click on a scope and it would create you a preview on the fly or something. Or maybe I could have them be pre-generated and shipped in their respective scopes. But, it would be a good bit of work to do the preview layout thingie.

The reason the previewer above doesn't just display the images is that there is currently no 'deferred display' mechanism in the server browser. So if you just ran the cursor down that list, it would create a huge blast of activity and overhead.
Dean Roddey
Explorans limites defectum
Reply
#7
One thing I have done before is copy the images from the C:\Program Files\CQC\CQCData\DataServer\Images folder into a temporary folder, then did a recursive rename of all of them to a .png file.  Once this is done, you can open them up directly using the IrfanView viewer, maybe others.  It does give size information when opened up with IrfanView, but not a preview within Explorer, which would be nice, and may be able to be configured within Explorer.  IrfanView, will however, allow you to quickly go through each one and look at it with the arrow keys.

There is also a IrfanView Thumbnails app that installs with IrfanView, and it has a directory tree layout with the images of each file in each folder, and if you hover over it, will show you the height and width.

You can also associate the windows extension *.CQCImgStore2 to IrfanView, and then click on any of them and get a good look at them.
Reply
#8
Just don't do any of that on the actual files, copy them somewhere else or you could cause bad problems by causing the files to be locked.
Dean Roddey
Explorans limites defectum
Reply
#9
(06-26-2019, 04:55 PM)kblagron Wrote: One thing I have done before is copy the images from the C:\Program Files\CQC\CQCData\DataServer\Images folder into a temporary folder, then did a recursive rename of all of them to a .png file.  Once this is done, you can open them up directly using the IrfanView viewer, maybe others.  It does give size information when opened up with IrfanView, but not a preview within Explorer, which would be nice, and may be able to be configured within Explorer.  IrfanView, will however, allow you to quickly go through each one and look at it with the arrow keys.

There is also a IrfanView Thumbnails app that installs with IrfanView, and it has a directory tree layout with the images of each file in each folder, and if you hover over it, will show you the height and width.

You can also associate the windows extension *.CQCImgStore2 to IrfanView, and then click on any of them and get a good look at them.

Wow. Much faster. I used Bulk Rename Utility and then the IrfanView program to create an HTML file that lists all images, height, width, and location.

Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Increment web image widget NishanF 5 173 10-24-2019, 08:16 AM
Last Post: Dean Roddey
  Display of an Extended Wait for User Image kblagron 4 261 09-20-2019, 02:21 PM
Last Post: kblagron
  Button Click changes button image? gReatAutomation 6 306 08-05-2019, 03:53 PM
Last Post: Dean Roddey
  Image Pack Previews Not Available gReatAutomation 4 466 05-22-2019, 04:51 PM
Last Post: gReatAutomation
  Google Calendar and Web Browser kblagron 4 546 04-25-2019, 10:10 PM
Last Post: kblagron
  Cover Art Browser pjgregory 15 3,865 05-25-2018, 11:18 AM
Last Post: Dean Roddey
Question Boolean image is in error state ghurty 4 1,526 05-24-2018, 09:04 PM
Last Post: ghurty
  Using Overlay and Static Image Browser kblagron 2 1,411 03-11-2018, 11:59 PM
Last Post: kblagron
  Problem with Genre Browser pjgregory 4 1,575 03-02-2018, 09:34 AM
Last Post: Dean Roddey
  How to Import a CQC Image Package KenC 9 4,010 10-28-2017, 04:38 PM
Last Post: KenC

Forum Jump:


Users browsing this thread: 1 Guest(s)