MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 36477 time(s), 12 post(s) 6/2/2014 4:10:02 PMby Zoomicon

Related topics

Zoomicon

Zoomicon

6/14/2014 1:16:01 PM
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
This content has not been rated yet. 
2793 Reputation 345 Total posts
khorvat

khorvat

6/25/2014 12:13:14 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2