Have you tried @Steve-Mcl example? Does it work?
Ya his sample for the it works I'm just trying to determine how to apply it to my expectations I guess.
clearly it doesn't seem to like me just passing in a sequence of image urls to a single image node though?
Are these URLs public? Post a copy and I'll do a demo.
Here is the flow I'm working with,
[{"id":"65f0d03.ff2bb3","type":"function","z":"443abc3f.d3eea4","name":"create Image URLs","func":"var depositaddress = msg.payload; //for search returns\n\nvar rawaddy = depositaddress.substring(4); //Trim first 4 digits\n\nvar a1 = rawaddy.substr(0,4); // keep next 4 digits\nvar z1 = rawaddy.substring(rawaddy.length - 4); //keep last 4 digits\n\nvar bg = rawaddy.substr(0,1);\nvar bgImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/bg/\" + bg + \"_bg.png\";\n\nvar skin = rawaddy.substr(1,1);\nvar skinImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/skin/\" + skin + \"_skin.png\";\n\nvar eyes = rawaddy.substr(2,1);\nvar eyesImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/eyes/\" + eyes + \"_eyes.png\";\n\nvar teeth = rawaddy.substr(3,1);\nvar teethImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/teeth/\" + teeth + \"_teeth.png\";\n\nvar lips = rawaddy.substr(-4).substr(0,1);\nvar lipsImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/lips/\" + lips + \"_lips.png\";\n\nvar hair = rawaddy.substr(-4).substr(1,1); \nvar hairImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/hair/\" + hair + \"_hair.png\";\n\nvar hat = rawaddy.substr(-4).substr(2,1); \nvar hatImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/hat/\" + hat + \"_hat.png\";\n\nvar chest = rawaddy.substr(-4).substr(3,1);\nvar chestImg = \"https://raw.githubusercontent.com/cryptocracy/deruptars/main/chest/\" + chest + \"_chest.png\";\n\n\nmsg.bg = bg;\nmsg.skin = skin;\nmsg.eyes = eyes;\nmsg.teeth = teeth;\nmsg.lips = lips;\nmsg.hair = hair;\nmsg.hat = hat;\nmsg.chest = chest;\n\nmsg.payload = {bgImg, skinImg, eyesImg, teethImg, lipsImg};//pass along urls\nmsg.deruptar = a1+z1;\nmsg.depositaddress = depositaddress;\n\n\n\n\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":430,"y":660,"wires":[["22d69490.c4e4dc"]]},{"id":"8cc812a3.91f38","type":"jimp-image","z":"443abc3f.d3eea4","name":"image composite via payload","data":"payload","dataType":"msg","ret":"img","parameter1":"payload","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"0","parameter4Type":"num","parameter5":"0","parameter5Type":"num","parameter6":"284","parameter6Type":"num","parameter7":"284","parameter7Type":"num","parameter8":"","parameter8Type":"msg","sendProperty":"payload","sendPropertyType":"msg","parameterCount":7,"jimpFunction":"blit","selectedJimpFunction":{"name":"blit","fn":"blit","description":"blit the image with another Jimp image at x, y, optionally cropped","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"srcx","type":"num","required":false,"hint":"the x position from which to crop the source image"},{"name":"srcy","type":"num","required":false,"hint":"the y position from which to crop the source image"},{"name":"srcw","type":"num","required":false,"hint":"the width to which to crop the source image"},{"name":"srch","type":"num","required":false,"hint":"the height to which to crop the source image"}]},"x":840,"y":660,"wires":[["f9fcf7d1.7db908"]]},{"id":"22d69490.c4e4dc","type":"split","z":"443abc3f.d3eea4","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":610,"y":660,"wires":[["6832165c.47f3c8","8cc812a3.91f38"]]},{"id":"6832165c.47f3c8","type":"debug","z":"443abc3f.d3eea4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":750,"y":600,"wires":[]},{"id":"f9fcf7d1.7db908","type":"image viewer","z":"443abc3f.d3eea4","name":"","width":"284","data":"payload","dataType":"msg","active":true,"x":1050,"y":660,"wires":[[]]},{"id":"c6bb800b.58df5","type":"inject","z":"443abc3f.d3eea4","name":"inject principal","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"SP9JYG8J36SXDMWY2X5RJSBQZ1FZQW4YDF7SPB51","payloadType":"str","x":210,"y":660,"wires":[["f73bf102.ca409","65f0d03.ff2bb3"]]}]
Yes they are public here are 3 for sample useage:
BG Image
Skin Image
Eyes Image
Probably a bit of a hack... but end result seems to work.
[{"id":"f1ddb863e3b15a23","type":"comment","z":"2d4299a4557e09fa","name":"Working with multiple images and demonstrating composite function","info":"","x":300,"y":580,"wires":[]},{"id":"ca09ca1e44a45878","type":"inject","z":"2d4299a4557e09fa","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":130,"y":620,"wires":[[]]},{"id":"a89b4e3c06efd1e3","type":"image viewer","z":"2d4299a4557e09fa","name":"skin","width":"120","data":"skin","dataType":"msg","active":true,"x":450,"y":660,"wires":[["7537983b23f76fa6"]]},{"id":"8933b3fba733433a","type":"jimp-image","z":"2d4299a4557e09fa","name":"Load Skin","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/skin/G_skin.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"skin","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":460,"y":620,"wires":[["a89b4e3c06efd1e3"]],"icon":"font-awesome/fa-image"},{"id":"7537983b23f76fa6","type":"jimp-image","z":"2d4299a4557e09fa","name":"Merge","data":"bg","dataType":"msg","ret":"img","parameter1":"skin","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"BLEND_SOURCE_OVER","parameter4Type":"Blend","parameter5":"100","parameter5Type":"num","parameter6":"100","parameter6Type":"num","parameter7":"60","parameter7Type":"num","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":6,"jimpFunction":"composite","selectedJimpFunction":{"name":"composite","fn":"composite","description":"composites another Jimp image over this image at x, y","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"mode","group":"options","type":"blend","required":true,"hint":"what blend mode to use"},{"name":"opacitySource","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"},{"name":"opacityDest","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"}]},"x":650,"y":620,"wires":[["83e377ff55e73a1e"]],"icon":"font-awesome/fa-image"},{"id":"d6550580507de5f7","type":"image viewer","z":"2d4299a4557e09fa","name":"bg","width":"120","data":"bg","dataType":"msg","active":true,"x":250,"y":660,"wires":[["8933b3fba733433a"]]},{"id":"83e377ff55e73a1e","type":"image viewer","z":"2d4299a4557e09fa","name":"Monster","width":"120","data":"monster","dataType":"msg","active":true,"x":660,"y":660,"wires":[["eee74db22843a1d9"]]},{"id":"883e28137d9073a0","type":"jimp-image","z":"2d4299a4557e09fa","name":"Load BG","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/bg/Y_bg.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"bg","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":260,"y":620,"wires":[["d6550580507de5f7"]],"icon":"font-awesome/fa-image"},{"id":"30adebd6edcefef5","type":"inject","z":"2d4299a4557e09fa","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":130,"y":620,"wires":[["883e28137d9073a0"]]},{"id":"eee74db22843a1d9","type":"jimp-image","z":"2d4299a4557e09fa","name":"Load Eyes","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/eyes/8_eyes.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"eyes","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":870,"y":620,"wires":[["1a2785edbf155fe8"]],"icon":"font-awesome/fa-image"},{"id":"1a2785edbf155fe8","type":"image viewer","z":"2d4299a4557e09fa","name":"eyes","width":"120","data":"eyes","dataType":"msg","active":true,"x":850,"y":660,"wires":[["ce9851fe1176887e"]]},{"id":"83a0d3f67bb3e86f","type":"jimp-image","z":"2d4299a4557e09fa","name":"Load Teeth","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/teeth/J_teeth.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"teeth","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":270,"y":900,"wires":[["a2805daea551110f"]],"icon":"font-awesome/fa-image"},{"id":"a2805daea551110f","type":"image viewer","z":"2d4299a4557e09fa","name":"teeth","width":"120","data":"teeth","dataType":"msg","active":true,"x":250,"y":940,"wires":[["a303bf972b0eaca5"]]},{"id":"2d2068390ab65117","type":"jimp-image","z":"2d4299a4557e09fa","name":"Load lips","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/lips/P_lips.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"lips","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":660,"y":900,"wires":[["371fd336205b231c"]],"icon":"font-awesome/fa-image"},{"id":"371fd336205b231c","type":"image viewer","z":"2d4299a4557e09fa","name":"lips","width":"120","data":"lips","dataType":"msg","active":true,"x":650,"y":940,"wires":[["b3d63d2ace5921f5"]]},{"id":"ce9851fe1176887e","type":"jimp-image","z":"2d4299a4557e09fa","name":"Merge","data":"monster","dataType":"msg","ret":"img","parameter1":"eyes","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"BLEND_SOURCE_OVER","parameter4Type":"Blend","parameter5":"100","parameter5Type":"num","parameter6":"100","parameter6Type":"num","parameter7":"60","parameter7Type":"num","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":6,"jimpFunction":"composite","selectedJimpFunction":{"name":"composite","fn":"composite","description":"composites another Jimp image over this image at x, y","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"mode","group":"options","type":"blend","required":true,"hint":"what blend mode to use"},{"name":"opacitySource","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"},{"name":"opacityDest","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"}]},"x":1050,"y":620,"wires":[["3e91993a39f9743a"]],"icon":"font-awesome/fa-image"},{"id":"3e91993a39f9743a","type":"image viewer","z":"2d4299a4557e09fa","name":"Monster","width":"120","data":"monster","dataType":"msg","active":true,"x":1060,"y":660,"wires":[["83a0d3f67bb3e86f"]]},{"id":"a303bf972b0eaca5","type":"jimp-image","z":"2d4299a4557e09fa","name":"Merge","data":"bg","dataType":"msg","ret":"img","parameter1":"teeth","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"BLEND_SOURCE_OVER","parameter4Type":"Blend","parameter5":"100","parameter5Type":"num","parameter6":"100","parameter6Type":"num","parameter7":"60","parameter7Type":"num","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":6,"jimpFunction":"composite","selectedJimpFunction":{"name":"composite","fn":"composite","description":"composites another Jimp image over this image at x, y","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"mode","group":"options","type":"blend","required":true,"hint":"what blend mode to use"},{"name":"opacitySource","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"},{"name":"opacityDest","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"}]},"x":450,"y":900,"wires":[["8a75738f4da049c4"]],"icon":"font-awesome/fa-image"},{"id":"8a75738f4da049c4","type":"image viewer","z":"2d4299a4557e09fa","name":"Monster","width":"120","data":"monster","dataType":"msg","active":true,"x":460,"y":940,"wires":[["2d2068390ab65117"]]},{"id":"b3d63d2ace5921f5","type":"jimp-image","z":"2d4299a4557e09fa","name":"Merge","data":"bg","dataType":"msg","ret":"img","parameter1":"lips","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"BLEND_SOURCE_OVER","parameter4Type":"Blend","parameter5":"100","parameter5Type":"num","parameter6":"100","parameter6Type":"num","parameter7":"60","parameter7Type":"num","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":6,"jimpFunction":"composite","selectedJimpFunction":{"name":"composite","fn":"composite","description":"composites another Jimp image over this image at x, y","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"mode","group":"options","type":"blend","required":true,"hint":"what blend mode to use"},{"name":"opacitySource","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"},{"name":"opacityDest","group":"options","type":"num","required":true,"hint":"opacity of src image 0.0 to 1.0"}]},"x":850,"y":900,"wires":[["cee7ce7671e3b1ef"]],"icon":"font-awesome/fa-image"},{"id":"cee7ce7671e3b1ef","type":"image viewer","z":"2d4299a4557e09fa","name":"Monster","width":"380","data":"monster","dataType":"msg","active":true,"x":860,"y":940,"wires":[[]]}]
I appreciate the clarification on how this works, I was totally confused LUL
I think i understand the jist of this now.
Presumably i can just pass the final node to a file write node to produce my final file I think can manage from here. I'll leave this thread open for a day though just incase
Thanks for the help!
Not a hack at all - you kept everything in series (to prevent msg cloning).
Only things I would do differently is load images first and use blit instead of composite as blit is faster (it doesnt try to merge pixels (it just overwrites them))
Yes if you change the last node to output a buffer & connect it to a file out node.
Alternatively, you can use the built in write function...
I see that you said this would be the faster way to do this, what do these guys look like inside?
Here is my version of that flow...
[{"id":"f1ddb863e3b15a23","type":"comment","z":"a4595cfa.591e2","name":"Working with multiple images and demonstrating composite function","info":"","x":720,"y":440,"wires":[]},{"id":"a89b4e3c06efd1e3","type":"image viewer","z":"a4595cfa.591e2","name":"skin","width":"120","data":"skin","dataType":"msg","active":true,"x":950,"y":520,"wires":[["eee74db22843a1d9"]]},{"id":"8933b3fba733433a","type":"jimp-image","z":"a4595cfa.591e2","name":"Load Skin","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/skin/G_skin.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"skin","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":860,"y":480,"wires":[["a89b4e3c06efd1e3"]],"icon":"font-awesome/fa-image"},{"id":"d6550580507de5f7","type":"image viewer","z":"a4595cfa.591e2","name":"bg","width":"120","data":"bg","dataType":"msg","active":true,"x":750,"y":520,"wires":[["8933b3fba733433a"]]},{"id":"883e28137d9073a0","type":"jimp-image","z":"a4595cfa.591e2","name":"Load BG","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/bg/Y_bg.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"bg","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":680,"y":480,"wires":[["d6550580507de5f7"]],"icon":"font-awesome/fa-image"},{"id":"30adebd6edcefef5","type":"inject","z":"a4595cfa.591e2","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":530,"y":480,"wires":[["883e28137d9073a0"]]},{"id":"eee74db22843a1d9","type":"jimp-image","z":"a4595cfa.591e2","name":"Load Eyes","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/eyes/8_eyes.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"eyes","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":1050,"y":480,"wires":[["1a2785edbf155fe8"]],"icon":"font-awesome/fa-image"},{"id":"1a2785edbf155fe8","type":"image viewer","z":"a4595cfa.591e2","name":"eyes","width":"120","data":"eyes","dataType":"msg","active":true,"x":1150,"y":520,"wires":[["d1ac042ab9f230ea"]]},{"id":"a303bf972b0eaca5","type":"jimp-image","z":"a4595cfa.591e2","name":"blit skin>bg=>monster","data":"bg","dataType":"msg","ret":"img","parameter1":"skin","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"","parameter4Type":"none","parameter5":"","parameter5Type":"none","parameter6":"","parameter6Type":"none","parameter7":"","parameter7Type":"none","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":7,"jimpFunction":"blit","selectedJimpFunction":{"name":"blit","fn":"blit","description":"blit the image with another Jimp image at x, y, optionally cropped","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"srcx","type":"num","required":false,"hint":"the x position from which to crop the source image"},{"name":"srcy","type":"num","required":false,"hint":"the y position from which to crop the source image"},{"name":"srcw","type":"num","required":false,"hint":"the width to which to crop the source image"},{"name":"srch","type":"num","required":false,"hint":"the height to which to crop the source image"}]},"x":620,"y":720,"wires":[["82dc48cfe461982e"]],"icon":"font-awesome/fa-image"},{"id":"cee7ce7671e3b1ef","type":"image viewer","z":"a4595cfa.591e2","name":"Monster","width":"200","data":"monster","dataType":"msg","active":true,"x":1340,"y":720,"wires":[[]]},{"id":"d1ac042ab9f230ea","type":"jimp-image","z":"a4595cfa.591e2","name":"Load Teeth","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/teeth/J_teeth.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"teeth","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":1250,"y":480,"wires":[["55b23fef4f8d7368"]],"icon":"font-awesome/fa-image"},{"id":"55b23fef4f8d7368","type":"image viewer","z":"a4595cfa.591e2","name":"teeth","width":"120","data":"teeth","dataType":"msg","active":true,"x":1350,"y":520,"wires":[["fc4064f2e4cafe91"]]},{"id":"fc4064f2e4cafe91","type":"jimp-image","z":"a4595cfa.591e2","name":"Load lips","data":"https://raw.githubusercontent.com/cryptocracy/deruptars/main/lips/P_lips.png","dataType":"str","ret":"img","parameter1":"120","parameter1Type":"num","parameter2":"120","parameter2Type":"num","parameter3":"RESIZE_BICUBIC","parameter3Type":"resizeMode","parameter4":"","parameter4Type":"","parameter5":"","parameter5Type":"","parameter6":"","parameter6Type":"","parameter7":"","parameter7Type":"","parameter8":"","parameter8Type":"","sendProperty":"lips","parameterCount":3,"jimpFunction":"resize","selectedJimpFunction":{"name":"resize","fn":"resize","description":"resize the image. One of the w or h parameters can be set to automatic (\"Jimp.AUTO\" or -1).","parameters":[{"name":"w","type":"num|auto","required":true,"hint":"the width to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"h","type":"num|auto","required":true,"hint":"the height to resize the image to (or \"Jimp.AUTO\" or -1)"},{"name":"mode","type":"resizeMode","required":false,"hint":"a scaling method (e.g. Jimp.RESIZE_BEZIER)"}]},"x":1440,"y":480,"wires":[["27ac7a7f1b49f2a9"]],"icon":"font-awesome/fa-image"},{"id":"27ac7a7f1b49f2a9","type":"image viewer","z":"a4595cfa.591e2","name":"lips","width":"120","data":"lips","dataType":"msg","active":true,"x":1510,"y":520,"wires":[["a303bf972b0eaca5"]]},{"id":"82dc48cfe461982e","type":"jimp-image","z":"a4595cfa.591e2","name":"blit teeth>monster=>monster","data":"monster","dataType":"msg","ret":"img","parameter1":"teeth","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"","parameter4Type":"none","parameter5":"","parameter5Type":"none","parameter6":"","parameter6Type":"none","parameter7":"","parameter7Type":"none","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":7,"jimpFunction":"blit","selectedJimpFunction":{"name":"blit","fn":"blit","description":"blit the image with another Jimp image at x, y, optionally cropped","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"srcx","type":"num","required":false,"hint":"the x position from which to crop the source image"},{"name":"srcy","type":"num","required":false,"hint":"the y position from which to crop the source image"},{"name":"srcw","type":"num","required":false,"hint":"the width to which to crop the source image"},{"name":"srch","type":"num","required":false,"hint":"the height to which to crop the source image"}]},"x":920,"y":720,"wires":[["9e4ffd2c4570ca45"]],"icon":"font-awesome/fa-image"},{"id":"95998a9196daa72b","type":"jimp-image","z":"a4595cfa.591e2","name":"blit eyes>monster=>monster","data":"monster","dataType":"msg","ret":"img","parameter1":"eyes","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"","parameter4Type":"none","parameter5":"","parameter5Type":"none","parameter6":"","parameter6Type":"none","parameter7":"","parameter7Type":"none","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":7,"jimpFunction":"blit","selectedJimpFunction":{"name":"blit","fn":"blit","description":"blit the image with another Jimp image at x, y, optionally cropped","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"srcx","type":"num","required":false,"hint":"the x position from which to crop the source image"},{"name":"srcy","type":"num","required":false,"hint":"the y position from which to crop the source image"},{"name":"srcw","type":"num","required":false,"hint":"the width to which to crop the source image"},{"name":"srch","type":"num","required":false,"hint":"the height to which to crop the source image"}]},"x":920,"y":800,"wires":[["ad729543a5f2ee96"]],"icon":"font-awesome/fa-image"},{"id":"9e4ffd2c4570ca45","type":"jimp-image","z":"a4595cfa.591e2","name":"blit lips>monster=>monster","data":"monster","dataType":"msg","ret":"img","parameter1":"lips","parameter1Type":"msg","parameter2":"0","parameter2Type":"num","parameter3":"0","parameter3Type":"num","parameter4":"","parameter4Type":"none","parameter5":"","parameter5Type":"none","parameter6":"","parameter6Type":"none","parameter7":"","parameter7Type":"none","parameter8":"","parameter8Type":"","sendProperty":"monster","parameterCount":7,"jimpFunction":"blit","selectedJimpFunction":{"name":"blit","fn":"blit","description":"blit the image with another Jimp image at x, y, optionally cropped","parameters":[{"name":"src","type":"","required":true,"hint":"the source image (a Jimp instance)","defaultType":"msg","defaultValue":"payload"},{"name":"x","type":"num","required":true,"hint":"the x position to blit the image"},{"name":"y","type":"num","required":true,"hint":"the y position to blit the image"},{"name":"srcx","type":"num","required":false,"hint":"the x position from which to crop the source image"},{"name":"srcy","type":"num","required":false,"hint":"the y position from which to crop the source image"},{"name":"srcw","type":"num","required":false,"hint":"the width to which to crop the source image"},{"name":"srch","type":"num","required":false,"hint":"the height to which to crop the source image"}]},"x":640,"y":800,"wires":[["95998a9196daa72b"]],"icon":"font-awesome/fa-image"},{"id":"ad729543a5f2ee96","type":"jimp-image","z":"a4595cfa.591e2","name":"write to file","data":"monster","dataType":"msg","ret":"img","parameter1":"c:\\temp\\monster.png","parameter1Type":"str","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload","sendPropertyType":"msg","parameterCount":1,"jimpFunction":"write","selectedJimpFunction":{"name":"write","fn":"write","description":"Write to file. NOTE: You can specify an alternative file extension type to change the type. Currently support types are jpg, png, bmp.","parameters":[{"name":"filename","type":"str","required":true,"hint":"Name of the file","defaultType":"str"}]},"x":1150,"y":800,"wires":[["cee7ce7671e3b1ef"]]}]
Ah ha! Setting the SRC x,y,h,v to NONE... that was the part I messed up on when testing. I used 0 and got nada results, thus using composite.
However, I do not see any notable difference in processing time.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.