You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException($"Couldn't find a suitable base image from which to generate all Windows package images. Please ensure your web app manifest has a square PNG image 512x512 or larger. Base image sources: {string.Join(", ",imageSourceDescriptions)}");
// The image generation API documentation (https://github.com/pwa-builder/pwabuilder-Image-Generator/blob/master/README.md)
126
+
// The image generation API documentation: https://github.com/pwa-builder/PWABuilder/blob/ac5aec8c3ad235cb7f2f54bfa64189ec73e947a6/apps/pwabuilder/Controllers/ImagesController.cs#L83
128
127
// states the image generator takes the following parameters:
129
-
// - fileName: bytes
130
-
// - padding: double
128
+
// - baseImage: bytes
129
+
// - padding: double from 0 to 1
131
130
// - color: The background color (named color or hex color) of the generated images. If null, the color will be chosen from (0,0) pixel of the source image
132
131
// - platform: windows11
133
-
// - colorChanged: if colorOption = "choose", this should be 1. Otherwise, omit.
{newStringContent(padding.ToString()),"padding"},// For Windows 10 images, padding is honored. For Windows 11 images, padding is overriden by individual image sizes. See https://github.com/pwa-builder/pwabuilder-Image-Generator/blob/master/AppImageGenerator/App_Data/windows11Images.json
thrownewException($"Unable to generate images for Windows package. The image URI returned from the image generator service, '{imagesResult.Uri}', is an invalid URI. Raw response: {imagesResponseString}");
156
-
}
157
145
158
-
returnimagesZipUri;
159
-
}
146
+
// Copy the response into a self-contained MemoryStream so that
147
+
// the ZipArchive remains usable after the HTTP response is disposed.
Copy file name to clipboardExpand all lines: apps/pwabuilder/Frontend/src/locales/en_US.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -271,7 +271,7 @@
271
271
"input_image": "Choose your base image",
272
272
"input_image_help": "You should choose a 512x512 or larger square PNG/SVG/WEBP image. This image will be used to generate all the images for your chosen platforms.",
273
273
"padding": "Padding",
274
-
"padding_text": "0 is no padding, 1 is 100% of the source image. Google Play and iOS App Store both recommend full bleed icons with zero padding.",
274
+
"padding_text": "0 is no padding, 1 is 100% of the source image. The Microsoft Store, Google Play, and iOS App Store recommend full bleed icons with zero padding.",
0 commit comments