diff --git a/params2name.m b/params2name.m
index 2b45f160e605c96088054c70bef8070b11f353d6..5c470e45e926f9ce7547a49eaf2d3e74d91dbf82 100644
--- a/params2name.m
+++ b/params2name.m
@@ -2,6 +2,9 @@ function convname = params2name(name,imgSize,imgRes,subSamp,bitDepth,ext)
 %PARAMS2NAME Summary of this function goes here
 %   Detailed explanation goes here
 
+imgSize(end+1:2) = 1;
+imgRes (end+1:2) = 1;
+
 imgSize = [num2str(imgSize(2)),'x',num2str(imgSize(1))];
 imgRes  = arrayfun(@num2str,imgRes,'UniformOutput',false);
 imgRes  = strjoin(imgRes,'x');