diff --git a/api/setup/analyzeMenuUrl.cfm b/api/setup/analyzeMenuUrl.cfm index 63fb53e..506de04 100644 --- a/api/setup/analyzeMenuUrl.cfm +++ b/api/setup/analyzeMenuUrl.cfm @@ -1044,7 +1044,7 @@ - + diff --git a/api/setup/saveWizard.cfm b/api/setup/saveWizard.cfm index 6bd1b1a..9639130 100644 --- a/api/setup/saveWizard.cfm +++ b/api/setup/saveWizard.cfm @@ -85,6 +85,12 @@ function downloadItemImage(itemID, imageUrl) { return false; } + // Upsize DoorDash CDN thumbnails to 600px for better quality + if (findNoCase("cdn4dd.com/p/", imageUrl) && findNoCase("width=150", imageUrl)) { + imageUrl = replaceNoCase(imageUrl, "width=150", "width=600"); + imageUrl = replaceNoCase(imageUrl, "height=150", "height=600"); + } + // Download the image http url="#imageUrl#" method="GET" timeout="30" result="httpResult" { httpparam type="header" name="User-Agent" value="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36";