ComfyUI/comfy_extras
Christian Byrne 856448060c
[feat] Add GetImageSize node (#8386)
* [feat] Add GetImageSize node to return image dimensions

Added a simple GetImageSize node in comfy_extras/nodes_images.py that returns width and height of input images. The node displays dimensions on the UI via PromptServer and provides width/height as outputs for further processing.

* add display name mapping

* [fix] Add server module mock to unit tests for PromptServer import

Updated test to mock server module preventing import errors from the new PromptServer usage in GetImageSize node. Uses direct import pattern consistent with rest of codebase.
2025-06-02 21:57:50 -04:00
..
chainner_models Replace print with logging (#6138) 2024-12-20 16:24:55 -05:00
nodes_ace.py Experimental lyrics strength for ACE. (#7984) 2025-05-07 19:22:07 -04:00
nodes_advanced_samplers.py
nodes_align_your_steps.py remove minimum step count for AYS (#6137) 2024-12-21 10:05:09 -05:00
nodes_apg.py fix negative momentum (#8100) 2025-05-13 10:50:32 -07:00
nodes_attention_multiply.py
nodes_audio.py add opus and mp3 to audio output node (#8019) 2025-05-12 16:00:01 -04:00
nodes_camera_trajectory.py Fix typo in last PR. (#8144) 2025-05-15 19:02:19 -04:00
nodes_canny.py
nodes_cfg.py Add CFGZeroStar node. 2025-03-26 05:09:52 -04:00
nodes_clip_sdxl.py Enforce all pyflake lint rules (#6033) 2024-12-12 19:29:37 -05:00
nodes_compositing.py
nodes_cond.py Add missing category for T5TokenizerOption (#8177) 2025-05-18 02:59:06 -04:00
nodes_controlnet.py
nodes_cosmos.py CosmosImageToVideoLatent batch_size now does something. 2025-01-15 17:19:59 -05:00
nodes_custom_sampler.py Add node to extend sigmas (#7901) 2025-05-02 05:28:05 -04:00
nodes_differential_diffusion.py
nodes_flux.py Add FluxDisableGuidance node to disable using the guidance embed. 2025-01-20 14:50:24 -05:00
nodes_freelunch.py
nodes_fresca.py Increase freq_cutoff in FreSca node. 2025-04-18 03:16:16 -04:00
nodes_gits.py Fix and enforce no trailing whitespace. 2024-12-31 03:16:37 -05:00
nodes_hidream.py CLIPTextEncodeHiDream. (#7703) 2025-04-21 02:41:51 -04:00
nodes_hooks.py Hooks Part 2 - TransformerOptionsHook and AdditionalModelsHook (#6377) 2025-01-11 12:20:23 -05:00
nodes_hunyuan3d.py Make "surface net" the default in the VoxelToMesh node. 2025-04-09 09:42:08 -04:00
nodes_hunyuan.py Hunyuan Custom initial untested implementation. (#8101) 2025-05-13 15:53:47 -04:00
nodes_hypernetwork.py
nodes_hypertile.py Lint all unused variables (#5989) 2024-12-12 17:59:16 -05:00
nodes_images.py [feat] Add GetImageSize node (#8386) 2025-06-02 21:57:50 -04:00
nodes_ip2p.py
nodes_latent.py Refactor and fixes for video latents. 2025-01-22 06:37:46 -05:00
nodes_load_3d.py remove mtl from 3d model file list (#8192) 2025-05-22 08:08:36 -04:00
nodes_lora_extract.py
nodes_lotus.py Native LotusD Implementation (#7125) 2025-03-21 14:04:15 -04:00
nodes_lt.py ltxv: overwrite existing mask on conditioned frame. (#7845) 2025-04-28 13:42:04 -04:00
nodes_lumina2.py support system prompt and cfg renorm in Lumina2 (#6795) 2025-02-16 18:15:43 -05:00
nodes_mahiro.py Add MaHiRo (improved/alternate CFG) (#5975) 2024-12-11 16:51:51 -05:00
nodes_mask.py upstream MaskPreview from ComfyUI_essentials (#7719) 2025-04-22 05:00:28 -04:00
nodes_mochi.py
nodes_model_advanced.py Automatically set the right sampling type for lotus. 2025-03-21 14:19:37 -04:00
nodes_model_downscale.py
nodes_model_merging_model_specific.py Add model merging node for WAN 2.1 2025-03-23 08:06:36 -04:00
nodes_model_merging.py Make clipsave work with more TE models. (#7908) 2025-05-02 05:15:32 -04:00
nodes_morphology.py Nodes to convert images to YUV and back. 2025-03-21 06:32:44 -04:00
nodes_optimalsteps.py Cleanup chroma PR. 2025-04-30 20:57:30 -04:00
nodes_pag.py
nodes_perpneg.py Fix and enforce no trailing whitespace. 2024-12-31 03:16:37 -05:00
nodes_photomaker.py (fix): added "model_type" to photomaker node (#6047) 2024-12-15 00:18:02 -05:00
nodes_pixart.py Add PixArt model support (#6055) 2024-12-20 15:25:00 -05:00
nodes_post_processing.py Lint instance methods (#7903) 2025-05-01 19:32:04 -04:00
nodes_preview_any.py upstream Preview Any from rgthree-comfy (#7815) 2025-05-02 13:15:54 -04:00
nodes_primitive.py More API Nodes (#7956) 2025-05-06 04:23:00 -04:00
nodes_rebatch.py Remove some trailing white space. 2024-12-27 18:02:30 -05:00
nodes_sag.py
nodes_sd3.py
nodes_sdupscale.py
nodes_slg.py
nodes_stable3d.py
nodes_stable_cascade.py
nodes_string.py Add node for regex replace(sub) operation (#8340) 2025-05-30 15:08:59 -04:00
nodes_tomesd.py Remove some trailing white space. 2024-12-27 18:02:30 -05:00
nodes_torch_compile.py Make torch.compile LoRA/key-compatible (#8213) 2025-05-21 04:56:56 -04:00
nodes_upscale_model.py
nodes_video_model.py Temporal area composition. 2025-03-03 06:50:31 -05:00
nodes_video.py Add support for VIDEO as a built-in type (#7844) 2025-04-29 05:58:00 -04:00
nodes_wan.py Not really tested WAN Phantom Support. (#8321) 2025-05-28 23:46:15 -04:00
nodes_webcam.py Lint instance methods (#7903) 2025-05-01 19:32:04 -04:00