Open yurix4 opened 8 years ago
You mean, extract a particular image? Can't you do that with an archiver (such as 7-Zip or WinRAR)?
It is very uncomfortable. When I see what kind of image you want to save me, I need operdelit filename (Sumatra today does not show the names of the images in the archive), open archiver find this image and extract. Very inconvenient if I sort thousands of images from the archives.
What do you think about the feature request I just made now? (See link above.)
I think that it is a necessary function. Also it would be nice if the map could be not only in the form of text (https://github.com/sumatrapdfreader/sumatrapdf/issues/540).
In Issue Export one or more slides pages as PDF/JPG/GIF #687 I outlined how to capture and save part (or whole pages as clipboard images). However sometimes we want to send the whole page to another application.
This is best done in a couple of clicks using an ExternalViewer call so here I press ALT F I and that page or image opens in IrfanView
Many applications can have different command calls, but this is how I use IrfanView Portable with its PDF plugin for a PDF or single image files It would need a very different scripted approach to pick out the numbered page from a .zip or .cbx but it should not be impossible given that SumatraPDF numbers pages in natural alpha order.
ExternalViewers [
[
CommandLine = "C:\Apps\Viewers\IrfanView\irfanview454\x64\i_view64.exe" "%1" /page=%p
Name = &IrfanView Image editor
Filter = *.pdf;*.gif;*.png;*.jpg;*.tga;*.tif;*.webp
]
]
For those brave hearted enough to try
Algorithm for expanding and repacking a comic.cbz
ren comic.cbz comic.zip
powershell Expand-Archive comic.zip
rem to view the images _as a folder_ use "c:\program files\sumatrapdf\sumatrapdf.exe" .\comic
rem here is the fun bit as for reviewing each you need to send all of the files individually to sumatrapdf
rem do some other edit like magic to the images in .\comic
powershell Compress-Archive .\comic\*.* newcomic.zip
ren newcomic.zip newcomic.cbz
"c:\program files\sumatrapdf\sumatrapdf.exe" newcomic.cbz
Perhaps when #1336 is implemented then as an add-on this can be done too... Now that #543 is done a Save As option could be added to the context menu of each image listed as a bookmark entry.
@SumatraPeter I agree that object extraction / saving is a highly desirable function and if possible there should be a way to pass them to other tools, at present the .bmk listing is not extended to all formats (my beef) and image object pointers are understandably not 100% consistent across varied structures of archive, folder or document embodiment. However your requests have helped since it is possible to parse some of the .bmk files that are currently available. Which reminds me I need to raise another open issue :-)
I have published my SumatraPDF Addin script that exports different file whole page types as fixed quality PNG (rather than as inferior lossy JPG) but once extracted, either as a single page or a range of pages, they can easily be converted by any other imaging tool. For more details see related issue https://github.com/sumatrapdfreader/sumatrapdf/issues/687
Good for CBR/CBZ files.