Mono Support MonoX searching for missing icon size for group (Closed)

Viewed 65019 time(s), 12 post(s), 6/2/2014 4:10:02 PM - by Zoomicon
6/14/2014 1:16:01 PM
2793 Reputation 345 Total posts

since your suggestion didn't work (changed the respective WebPart property and still it was ignoring me) and since in the group edit page and maybe in other places too it was trying to use that same missing size, I created a script to generate all the missing sizes (I'm a bit naughty here in that I don't call some external icon resizer, but just copy the 640_t version over as 576_t one if it is missing - after all they were both JPGs arround 8K in size from what I have seen).

You can place the following batch file anywhere under your site and run it, it will search recursively all subfolders. Best is to place it under Upload folder of MonoX

::-- BATCH file that creates an *_576_5.* file from an *_640_t.* one (copying it)
::-- Author: George Birbilis (http://zoomicon.com)
::-- Credits: String replacement based on http://www.dostips.com/DtTipsStringManipulation.php

@ECHO OFF

::-- Loop for all files recursively --::

FOR /R %%f in (*_640_t.*) DO CALL :process %%f

ECHO(
PAUSE

GOTO :EOF

::-- Per-file actions --::

:process

:: Display progress...
::ECHO Processing %*
<nul (set/p dummy=.)

SETLOCAL ENABLEDELAYEDEXPANSION
SET fromFile="%*"
SET toFile=!fromFile:_640_t=_576_t!

IF NOT EXIST %toFile% CALL :generate %fromFile% %toFile%

GOTO :EOF

::-- Generate missing file --::

:generate

ECHO(
ECHO COPY %*
COPY %*

::PAUSE

GOTO :EOF

11
6/25/2014 12:13:14 PM
15993 Reputation 2214 Total posts

Hi,

thanks for the batch script I'm glad that you have fixed the image sizes, my approach involves a bit more development and setup.

Regards

12
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.