Skip to content

JPEG "Multiple Compression" tool not wired into main window #7

@Gooichand

Description

@Gooichand

Issue Summary

JPEG Multiple Compression tool entry has no corresponding widget in open_tool

Description

The JPEG group ([6] [JPEG]) contains four tools: Quality Estimation, Error Level Analysis, Multiple Compression, JPEG Ghost Maps.
In MainWindow.open_tool, the JPEG group only handles tool == 0 (QualityWidget), tool == 1 (ElaWidget), and tool == 3 (GhostmapWidget); there is no case for tool == 2 (Multiple Compression).
Users selecting "Multiple Compression" see no effect because tool_widget stays None and the function returns.

Steps to Reproduce

  1. Launch LOOK-DGC, load an image.
  2. Double-click [JPEG] → Multiple Compression in the tool tree.
  3. Observe that no subwindow is created, unlike other JPEG tools.

Expected Result

Selecting "Multiple Compression" should open the corresponding analysis tool for detecting multiple JPEG compressions, as described in the README features.

Actual Result

No window or error is shown; the tool is effectively non-functional due to missing branch in open_tool.

Affected Files

  • gui/tools.py
  • gui/look-dgc.py

Suggested Fix

Implement a MultipleCompressionWidget (or similar) and add a elif tool == 2: branch under group == 6 in open_tool, or temporarily hide/disable the tool in ToolTree until implementation is ready.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions