File tree Expand file tree Collapse file tree
src/lib/components/channel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 371371
372372 if (file [' type' ].startsWith (' image/' )) {
373373 const compressImageHandler = async (imageUrl , settings = {}, config = {}) => {
374- // Quick shortcut so we don’ t do unnecessary work.
374+ // Quick shortcut so we don' t do unnecessary work.
375375 const settingsCompression = settings ?.imageCompression ?? false ;
376376 const configWidth = config ?.file ?.image_compression ?.width ?? null ;
377377 const configHeight = config ?.file ?.image_compression ?.height ?? null ;
378378
379+ console .log (' [DEBUG compressImageHandler]' , {
380+ settingsCompression ,
381+ configWidth ,
382+ configHeight ,
383+ settings ,
384+ config: config ?.file
385+ });
386+
379387 // If neither settings nor config wants compression, return original URL.
380388 if (! settingsCompression && ! configWidth && ! configHeight ) {
389+ console .log (' [DEBUG] Early exit - no compression needed' );
381390 return imageUrl ;
382391 }
383392
You can’t perform that action at this time.
0 commit comments