Closed pjrinaldi closed 4 years ago
Can use magick++ since i use it for montage...
using namespace std; using namespace Magick; int main(int argc,char *argv) { InitializeMagick(argv);
Image master("horse.jpg"); Image second = master; second.resize("640x480"); Image third = master; third.resize("800x600"); second.write("horse640x480.jpg"); third.write("horse800x600.jpg"); return 0; }
This bit will essentially resize and save the image i need.
initial implementation of new thumbnailing. haven't tested yet. but i think an issue might be reading the bytes and writing them to a .jpg... probably need to figure out extension and write the file accordingly to read. could use category, signature to get value...
initial implementation is tested and works. need to test on bigger evidence and also see what errors are captured. also need to modify how to display the errors to the user, etc...
need to work on fine tuning new image thumbnailer... ensure video thumbnails are png as well. ensure no where is looking for jpg's as thumbnails.
also need to calculate the count of image categories that i will be thumbnailing ahead of launching the thumbnailer count. could do this with model find... and get the count. this should speed up the code dramatically by reducing the threading over files which don't matter by eliminating them on the front-end. mine as well make use of category since i calculate it ahead of time.
need to do the same for video's also...
this count will help with the alternating dig display for what is going on with the counts...
qlist is working again without errors. also have video and image thumbnails displaying. if all is selected, then a count is calculated for images only and/or videos only, but if checked it selected, then i test all checked items.
switch to png is working, and now i just need to test thumbnailing further for different image sets and see if errors generated by magick when generating thumbnails can be fixed by adding options such as ICC or something else.
check video thumbnailing code, it seems to only do 1 regardless of what is selected in dig deeper options... it registers 49, but ends at 1. no crashes or errors, just acts like it finished...
thumbnailing is working for both image and video. need to modify image error capture messages to display enough info to the user... then run some tests.
for video item... video error by unlimicon from the Noun Project should be included in attribution
thumbnailing is working for videos. images are also working, but all the errors thrown are for the magick resize operation, not the load operation.. i should try to determine the image width and height and if it's less than thumbsize, i should skip resize and see if i get less errors... also need to figure out some samples to see what the errors are...
don't resize smaller to larger, but it still errors out, so the issue must be in the blob bit??
i think the problem is resolved for the 0.2 release. I can revisit issues at a later date as i do comparative testing with other tools output.
need to look into using something other than qt fro thumbnailing, maybe i can use imagemagick, which i think will work with less output errors.
also need to see why video thumbnails are generated but not displayed in the image viewer...
may have to look to alternative gui element than a qlist...