Page 1 of 1
Open image in webp-format
Posted: Tue Jul 29, 2025 9:40 am
by sarnusch
Good morning,
We receive many images in 'webp' format from our suppliers.
Unfortunately, the following error appears when opening the images with RoboTask:

- Screenshot 2025-07-29 103656.png (10.03 KiB) Viewed 80 times
The image can be opened by windows windows photo viewer.
Is it possible to add functionality for this format?
Re: Open image in webp-format
Posted: Tue Jul 29, 2025 11:14 am
by Oleg
What version of RoboTask do you use?
Could you send a couple problem images to me by email?
Re: Open image in webp-format
Posted: Tue Jul 29, 2025 11:17 am
by Oleg
Also I want to take a look to your task and complete log file
Re: Open image in webp-format
Posted: Tue Jul 29, 2025 11:52 am
by sarnusch
Hello,
I just sent the requested information to you via email.
Re: Open image in webp-format
Posted: Tue Jul 29, 2025 12:29 pm
by Oleg
H-m-m... It works
I used this task
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|307868550
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task1466"
Hide=INTEGER|0
ID=INTEGER|-1868807918
LogOnAsUser=INTEGER|1
Name=STRING|"WEBP (myTest)"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
[Actions\Action1]
ActionID=STRING|"A_LOOP_FILE"
Enabled=INTEGER|-1
Name=STRING|"File Loop"
Params=FOLDER
[Actions\Action1\Params]
_rt_variables_produced=STRING|"FILENAME"
createmode=STRING|"1"
date1=STRING|"20250729"
date2=STRING|"20250729"
destvar=STRING|"FILENAME"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"C:\temp\111\*.webp"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savesize=STRING|"0"
searchkind=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subdirs=STRING|"0"
timesize=STRING|"0"
WithoutPath=STRING|"0"
[Actions\Action2]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action2\Params]
expression=STRING|"3"
message=STRING|"{FILENAME}"
mode=STRING|"0"
type=STRING|"3"
[Actions\Action3]
ActionID=STRING|"A_GRAPHICS_OPEN_IMAGE"
Enabled=INTEGER|-1
Name=STRING|"Open image from '{FILENAME}'"
Params=FOLDER
[Actions\Action3\Params]
_rt_variables_produced=STRING|"ImgHeight,ImgWidth"
enable_cms=STRING|"0"
height_var=STRING|"ImgHeight"
image_file=STRING|"{FILENAME}"
source=STRING|"0"
width_var=STRING|"ImgWidth"
[Actions\Action4]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"
I get this log file
Code: Select all
I: 29.07.2025 14:12:21: ****** Starting task: WEBP (myTest) ******************
I: 29.07.2025 14:12:21: Executing "1.File Loop"
I: 29.07.2025 14:12:21: Executing "2.Log Message"
-: 29.07.2025 14:12:21: C:\temp\111\89930872.webp
I: 29.07.2025 14:12:21: Executing "3.Open image from '{FILENAME}'"
I: 29.07.2025 14:12:22: Executing "4.End Loop"
I: 29.07.2025 14:12:22: Executing "1.File Loop"
I: 29.07.2025 14:12:22: Executing "2.Log Message"
-: 29.07.2025 14:12:22: C:\temp\111\file_example_WEBP_250kB.webp
I: 29.07.2025 14:12:22: Executing "3.Open image from '{FILENAME}'"
I: 29.07.2025 14:12:22: Executing "4.End Loop"
I: 29.07.2025 14:12:22: Executing "1.File Loop"
I: 29.07.2025 14:12:22: Executing "2.Log Message"
-: 29.07.2025 14:12:22: C:\temp\111\file_example_WEBP_500kB.webp
I: 29.07.2025 14:12:22: Executing "3.Open image from '{FILENAME}'"
I: 29.07.2025 14:12:22: Executing "4.End Loop"
I: 29.07.2025 14:12:22: Executing "1.File Loop"
I: 29.07.2025 14:12:22: Executing "2.Log Message"
-: 29.07.2025 14:12:22: C:\temp\111\file_example_WEBP_50kB.webp
I: 29.07.2025 14:12:22: Executing "3.Open image from '{FILENAME}'"
I: 29.07.2025 14:12:22: Executing "4.End Loop"
I: 29.07.2025 14:12:22: Executing "1.File Loop"
I: 29.07.2025 14:12:22: Executing "2.Log Message"
-: 29.07.2025 14:12:22: C:\temp\111\WebP_550x292.webp
I: 29.07.2025 14:12:22: Executing "3.Open image from '{FILENAME}'"
I: 29.07.2025 14:12:22: Executing "4.End Loop"
I: 29.07.2025 14:12:22: Executing "1.File Loop"
I: 29.07.2025 14:12:22: Executing "2.Log Message"
-: 29.07.2025 14:12:22: C:\temp\111\WebP_845x562.webp
I: 29.07.2025 14:12:22: Executing "3.Open image from '{FILENAME}'"
I: 29.07.2025 14:12:22: Executing "4.End Loop"
I: 29.07.2025 14:12:22: Executing "1.File Loop"
I: 29.07.2025 14:12:22: Task executed successfully
The folder
C:\temp\111 contains several WebP files including your "problem" file