recurring problem with each new update

previously known as VSO Image Resizer

Moderator: Fabrice

leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

recurring problem with each new update

Post by leeuk »

Every time i've updated to a new version and run one of my batch files that calls the program (resize.exe) I get the same unexpected message prompt about a file already existing (see image below). If i click the X in the top right to abort the program and then re-run the same batch file the conflict message prompt window does not appear (as I would expect)..

below are the key parts of my batch file:

set resize_program=%SystemDrive%\Program Files (x86)\ObviousIdea\Light Image Resizer\resize.exe

"%resize_program%"
"%cd%\*.jpg"
"%cd%\*.png"
/format=jpg
/W=500
/H=667
/Quality=80
/Exif=0
/Xmp=0
/Iptc=0
/Icc=0
/Mask=%%F
/AutoClose=1
/Conflict=overwrite
/Run
/Dest="resized\images\cd"

I am resizing JPG and PNG files in current folder where the batch file is called from to JPG format.

But on 1st run the program seems to be ignoring the /Dest and /Conflict parameters. I have /Conflict set to overwrite so the file conflict prompt should not appear?

Any ideas?

I tried changing the /Dest parameter to /Dest="%cd%\resized\images\cd" but problem still there.

As i said this only happens once on 1st run of the program. After that everything works great!
The attachment light image resizer - bug.jpg is no longer available
Attachments
light image resizer - bug.jpg
light image resizer - bug.jpg (31.34 KiB) Viewed 1296 times
User avatar
Phil
ObviousIdea
Posts: 280
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

From what you describe, it really seems like either the parameters are not detected or not handed over correctly for some reason.

I tried to reproduce your issue, recreating the details as close to yours as possible. But for me it works as expected every time.

Did you take a look at the log file to compare between the successful and failed run? (You can press Ctrl+Alt+L in the application to open it quickly)
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

Phil wrote:From what you describe, it really seems like either the parameters are not detected or not handed over correctly for some reason.

I tried to reproduce your issue, recreating the details as close to yours as possible. But for me it works as expected every time.

Did you take a look at the log file to compare between the successful and failed run? (You can press Ctrl+Alt+L in the application to open it quickly)
I see where the log file is now and how it logs the parameters passed. i will uinstall the program then reinstall and see whats showing in the log file on 1st run. that should tell us if the problem lies somewhere in my system setup or in the resize program 👍
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

ok, i've replicated the problem numerous times and looking at the log file and comparing a good run with a failed run i notice that the failed run has "Profile: <Original Resolution>" whereas the good run has "Profile: ".

So its using a profile setting instead of those passed via the command line. All the following were set wrong on a failed run:

Width: 100 (%) - should have been 500 (px)
Height: 100 (%) - should have been 667 (px)
Format: As Original - should have been JPEG
Quality: 90% - should have been 80%
On name conflict: Prompt - should have been Overwrite
[X] Copy EXIF - should have been unchecked
[X] Copy XMP - should have been unchecked
[X] Copy IPTC - should have been unchecked
[X] Copy ICC - should have been unchecked

I tried adding the parameter "/Profile=" but still get same problem.

So on 1st run its using a profile setting but after that its ok and uses the settings in the command line parameters.

How about adding a "/Profile=cmd" to command the program to NOT use a profile settings but only those on the command line?

When i said its on 1st run, its actually the 2nd run. On the 1st run i enter my registration details to unlock and then exit the program. But if I run my batch file when the program hasn't been unlocked it prompts me to ulock (which i do) and then runs ok 1st time.

Also on a failed run i noticed a log file was created with the name "CRASH" in the title. e.g. "ImageResizer_crash_PID8.log"

Some suggestions for changes to the program:

(a) During setup it prompts for install to folder and by default has the program's version number in the title i.e. "C:\Program Files (x86)\ObviousIdea\Light Image Resizer 5". My preference would be not to have the version number included, is there any reason why its there? Also same for start menu folder. I have quite a few batch files that use the path and to change the references if a new version 6 was released would be a pain! But for now during setup i edit and removed the version number..

(b) After uninstall it prompts for a restart. Is this still required if "Add to Explorer context menu" unchecked during setup? If so the prompt can this be removed?
User avatar
Phil
ObviousIdea
Posts: 280
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

Ok that's odd, I will also do more testing later. Just to clarify: do you always uninstall before installing a new version?

The change in folder name was done so it wouldn't overwrite the old v4 by default. If you change the installation folder on first install, minor version updates should install to the same folder automatically.

Indeed the restart prompt seems unnecessary. I will check if it can be removed.
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

yes in those tests i did yesterday i did uninstall (with box checked to remove any settings) and rebooted.
User avatar
Phil
ObviousIdea
Posts: 280
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

Sorry, but I still don't reproduce the issue. Can you post or send me the logs?
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

log file below. 1st run i just enter registration code and click X in top right to exit program. 2nd run, program was called from a test batch file to resize 4 PNG files.

set resize_program=%SystemDrive%\Program Files (x86)\ObviousIdea\Light Image Resizer\resize.exe
"%resize_program%" "%cd%\*.jpg" "%cd%\*.png" /W=500 /H=667 /format=jpg /Quality=80 /Exif=0 /Xmp=0 /Iptc=0 /Icc=0 /Mask=%%F /AutoClose=1 /Conflict=overwrite /Run /Dest="resized\images\cd"
if errorlevel 1 goto error

2017-06-19 13:25:21 ---- ******************** Log session stop 2017-06-19 13:25:21.921 PID 5428********************
2017-06-19 13:25:21 Error [6] Error saving "H:\mybiz\images - new\new items - CDs\main\UltraNate_NewKindOfMedicine_731458274926.png": The specified tag was not found
2017-06-19 13:25:21 Error [1] Error saving "H:\mybiz\images - new\new items - CDs\main\MarinaAndTheDiamonds_FamilyJewels_825646836253.png": The specified tag was not found
2017-06-19 13:25:21 Error [4] Error saving "H:\mybiz\images - new\new items - CDs\main\Texas_GreatestHits_731454826228_1.png": The specified tag was not found
2017-06-19 13:25:21 Info Operation cancelled by user
2017-06-19 13:25:14 Info 4 files
2017-06-19 13:25:14 Info --- Processing ---
2017-06-19 13:25:14 Info Destination: <original>
2017-06-19 13:25:14 Info Action: Create copies
2017-06-19 13:25:14 Info [ ] Optimize PNG files with OptiPNG
2017-06-19 13:25:14 Info [ ] Send by email
2017-06-19 13:25:14 Info [X] Copy ICC
2017-06-19 13:25:14 Info [X] Copy IPTC
2017-06-19 13:25:14 Info [X] Copy XMP
2017-06-19 13:25:14 Info [X] Copy EXIF
2017-06-19 13:25:14 Info On name conflict: Prompt
2017-06-19 13:25:14 Info [ ] Keep file date
2017-06-19 13:25:14 Info [ ] Adjust portrait
2017-06-19 13:25:14 Info [ ] Flip image
2017-06-19 13:25:14 Info [ ] Rotate image
2017-06-19 13:25:14 Info [ ] Contrast
2017-06-19 13:25:14 Info [ ] Brightness
2017-06-19 13:25:14 Info [ ] Auto enhance
2017-06-19 13:25:14 Info [ ] Add border
2017-06-19 13:25:14 Info [ ] Sepia
2017-06-19 13:25:14 Info [ ] Grayscale
2017-06-19 13:25:14 Info [ ] Invert colors
2017-06-19 13:25:14 Info [ ] Watermark
2017-06-19 13:25:14 Info Filename Mask: %F
2017-06-19 13:25:14 Info [ ] Resolution: --
2017-06-19 13:25:14 Info [X] Keep Quality
2017-06-19 13:25:14 Info Quality: 90%
2017-06-19 13:25:14 Info Colors: Automatic
2017-06-19 13:25:14 Info Format: As Original
2017-06-19 13:25:14 Info Policy: Always
2017-06-19 13:25:14 Info Filtering: Lanczos
2017-06-19 13:25:14 Info Mode: Fit
2017-06-19 13:25:14 Info Height: 1050 (px)
2017-06-19 13:25:14 Info Width: 1680 (px)
2017-06-19 13:25:14 Info Profile: <Desktop Resolution>
2017-06-19 13:25:14 Info [X] Multithread processing: Auto
2017-06-19 13:25:14 Info [X] Create backups of original files
2017-06-19 13:25:14 Info [ ] Show preview
2017-06-19 13:25:14 Info Available threads: 8
2017-06-19 13:25:13 Info Paramstr #15 : "/Dest=resized\images\cd"
2017-06-19 13:25:13 Info Paramstr #14 : "/Run"
2017-06-19 13:25:13 Info Paramstr #13 : "/Conflict=overwrite"
2017-06-19 13:25:13 Info Paramstr #12 : "/AutoClose=1"
2017-06-19 13:25:13 Info Paramstr #11 : "/Mask=%F"
2017-06-19 13:25:13 Info Paramstr #10 : "/Icc=0"
2017-06-19 13:25:13 Info Paramstr #09 : "/Iptc=0"
2017-06-19 13:25:13 Info Paramstr #08 : "/Xmp=0"
2017-06-19 13:25:13 Info Paramstr #07 : "/Exif=0"
2017-06-19 13:25:13 Info Paramstr #06 : "/Quality=80"
2017-06-19 13:25:13 Info Paramstr #05 : "/format=jpg"
2017-06-19 13:25:13 Info Paramstr #04 : "/H=667"
2017-06-19 13:25:13 Info Paramstr #03 : "/W=500"
2017-06-19 13:25:13 Info Paramstr #02 : "H:\mybiz\images - new\new items - CDs\main\*.png"
2017-06-19 13:25:13 Info Paramstr #01 : "H:\mybiz\images - new\new items - CDs\main\*.jpg"
2017-06-19 13:25:13 Info Paramstr #00 : "C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe"
2017-06-19 13:25:13 Info CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
2017-06-19 13:25:13 Info Memory: 15.89 GB
2017-06-19 13:25:13 Info System default language : English (United Kingdom)
2017-06-19 13:25:13 Info User default language : English (United Kingdom)
2017-06-19 13:25:13 Info Version : 5.0.7.0
2017-06-19 13:25:13 Info ExeName : C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe
2017-06-19 13:25:13 Info OS : Windows 10 Pro (Version 1703, Build 15063)
2017-06-19 13:25:13 ---- ******************** Log session start 2017-06-19 13:25:13.954 PID 5428********************


2017-06-19 13:25:05 ---- ******************** Log session stop 2017-06-19 13:25:05.833 PID 4952********************
2017-06-19 13:24:52 Info Paramstr #00 : "C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe"
2017-06-19 13:24:52 Info CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
2017-06-19 13:24:52 Info Memory: 15.89 GB
2017-06-19 13:24:52 Info System default language : English (United Kingdom)
2017-06-19 13:24:52 Info User default language : English (United Kingdom)
2017-06-19 13:24:52 Info Version : 5.0.7.0
2017-06-19 13:24:52 Info ExeName : C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe
2017-06-19 13:24:52 Info OS : Windows 10 Pro (Version 1703, Build 15063)
2017-06-19 13:24:52 ---- ******************** Log session start 2017-06-19 13:24:52.007 PID 4952********************
User avatar
Phil
ObviousIdea
Posts: 280
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

I've made some changes to the parameter initialization.

Can you try if this is any better:
http://download2.obviousidea.com/hidden ... .0.7.1.exe
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

still no change.

2017-06-19 14:14:20 ---- ******************** Log session stop 2017-06-19 14:14:20.599 PID 4472********************
2017-06-19 14:14:20 Error [6] Error saving "H:\mybiz\images - new\new items - CDs\main\UltraNate_NewKindOfMedicine_731458274926.png": The specified tag was not found
2017-06-19 14:14:20 Error [4] Error saving "H:\mybiz\images - new\new items - CDs\main\Texas_GreatestHits_731454826228_1.png": The specified tag was not found
2017-06-19 14:14:20 Error [1] Error saving "H:\mybiz\images - new\new items - CDs\main\MarinaAndTheDiamonds_FamilyJewels_825646836253.png": The specified tag was not found
2017-06-19 14:14:20 Info Operation cancelled by user
2017-06-19 14:14:12 Info 4 files
2017-06-19 14:14:12 Info --- Processing ---
2017-06-19 14:14:12 Info Destination: <original>
2017-06-19 14:14:12 Info Action: Create copies
2017-06-19 14:14:12 Info [ ] Optimize PNG files with OptiPNG
2017-06-19 14:14:12 Info [ ] Send by email
2017-06-19 14:14:12 Info [X] Copy ICC
2017-06-19 14:14:12 Info [X] Copy IPTC
2017-06-19 14:14:12 Info [X] Copy XMP
2017-06-19 14:14:12 Info [X] Copy EXIF
2017-06-19 14:14:12 Info On name conflict: Prompt
2017-06-19 14:14:12 Info [ ] Keep file date
2017-06-19 14:14:12 Info [ ] Adjust portrait
2017-06-19 14:14:12 Info [ ] Flip image
2017-06-19 14:14:12 Info [ ] Rotate image
2017-06-19 14:14:12 Info [ ] Contrast
2017-06-19 14:14:12 Info [ ] Brightness
2017-06-19 14:14:12 Info [ ] Auto enhance
2017-06-19 14:14:12 Info [ ] Add border
2017-06-19 14:14:12 Info [ ] Sepia
2017-06-19 14:14:12 Info [ ] Grayscale
2017-06-19 14:14:12 Info [ ] Invert colors
2017-06-19 14:14:12 Info [ ] Watermark
2017-06-19 14:14:12 Info Filename Mask: %F
2017-06-19 14:14:12 Info [ ] Resolution: --
2017-06-19 14:14:12 Info [X] Keep Quality
2017-06-19 14:14:12 Info Quality: 90%
2017-06-19 14:14:12 Info Colors: Automatic
2017-06-19 14:14:12 Info Format: As Original
2017-06-19 14:14:12 Info Policy: Always
2017-06-19 14:14:12 Info Filtering: Lanczos
2017-06-19 14:14:12 Info Mode: Fit
2017-06-19 14:14:12 Info Height: 1050 (px)
2017-06-19 14:14:12 Info Width: 1680 (px)
2017-06-19 14:14:12 Info Profile: <Desktop Resolution>
2017-06-19 14:14:12 Info [X] Multithread processing: Auto
2017-06-19 14:14:12 Info [X] Create backups of original files
2017-06-19 14:14:12 Info [ ] Show preview
2017-06-19 14:14:12 Info Available threads: 8
2017-06-19 14:14:12 Info Paramstr #15 : "/Dest=resized\images\cd"
2017-06-19 14:14:12 Info Paramstr #14 : "/Run"
2017-06-19 14:14:12 Info Paramstr #13 : "/Conflict=overwrite"
2017-06-19 14:14:12 Info Paramstr #12 : "/AutoClose=1"
2017-06-19 14:14:12 Info Paramstr #11 : "/Mask=%F"
2017-06-19 14:14:12 Info Paramstr #10 : "/Icc=0"
2017-06-19 14:14:12 Info Paramstr #09 : "/Iptc=0"
2017-06-19 14:14:12 Info Paramstr #08 : "/Xmp=0"
2017-06-19 14:14:12 Info Paramstr #07 : "/Exif=0"
2017-06-19 14:14:12 Info Paramstr #06 : "/Quality=80"
2017-06-19 14:14:12 Info Paramstr #05 : "/format=jpg"
2017-06-19 14:14:12 Info Paramstr #04 : "/H=667"
2017-06-19 14:14:12 Info Paramstr #03 : "/W=500"
2017-06-19 14:14:12 Info Paramstr #02 : "H:\mybiz\images - new\new items - CDs\main\*.png"
2017-06-19 14:14:12 Info Paramstr #01 : "H:\mybiz\images - new\new items - CDs\main\*.jpg"
2017-06-19 14:14:12 Info Paramstr #00 : "C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe"
2017-06-19 14:14:12 Info CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
2017-06-19 14:14:12 Info Memory: 15.89 GB
2017-06-19 14:14:12 Info System default language : English (United Kingdom)
2017-06-19 14:14:12 Info User default language : English (United Kingdom)
2017-06-19 14:14:12 Info Version : 5.0.7.1
2017-06-19 14:14:12 Info ExeName : C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe
2017-06-19 14:14:12 Info OS : Windows 10 Pro (Version 1703, Build 15063)
2017-06-19 14:14:12 ---- ******************** Log session start 2017-06-19 14:14:12.003 PID 4472********************


2017-06-19 14:13:48 ---- ******************** Log session stop 2017-06-19 14:13:48.497 PID 4956********************
2017-06-19 14:13:19 Info Paramstr #00 : "C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe"
2017-06-19 14:13:19 Info CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
2017-06-19 14:13:19 Info Memory: 15.89 GB
2017-06-19 14:13:19 Info System default language : English (United Kingdom)
2017-06-19 14:13:19 Info User default language : English (United Kingdom)
2017-06-19 14:13:19 Info Version : 5.0.7.1
2017-06-19 14:13:19 Info ExeName : C:\Program Files (x86)\ObviousIdea\Light Image Resizer\Resize.exe
2017-06-19 14:13:19 Info OS : Windows 10 Pro (Version 1703, Build 15063)
2017-06-19 14:13:19 ---- ******************** Log session start 2017-06-19 14:13:19.420 PID 4956********************
User avatar
Phil
ObviousIdea
Posts: 280
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

Really strange... I can't reproduce this at all. As Windows 10 does fast boot by default, can you try if it's related to the reboot maybe?
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

i've turned the fast boot off as my PC boots up much quicker without it enabled.. due to having an SSD drive.

i will test again later this evening as i haven't rebooted between uninstalls and installs. i have a few browser windows open and it would be a big hassle to close everything down and do reboots..

When the program runs, check it clears the /profile setting before it looks for any setting in the command line params. I think you're on the right track thinking its an initialisation problem.
User avatar
Phil
ObviousIdea
Posts: 280
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

This was a tough one, but after lots of testing, I finally found it!

Please check out this version:
http://download2.obviousidea.com/hidden ... .0.7.2.exe
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

great. i'm ready to test from a clean install. i'll post back in a few minutes. :D
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

yes working fine here :)
Post Reply