#include "chrome/browser/ui/webui/util/image_util.h"
#include <string_view>
#include "base/base64.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkStream.h"
#include "third_party/skia/include/encode/SkPngEncoder.h"
#include "ui/gfx/image/buffer_w_stream.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_skia_rep.h"
namespace webui {
std::string MakeDataURIForImage(base::span<const uint8_t> image_data,
std::string_view mime_subtype) { … }
std::string EncodePNGAndMakeDataURI(gfx::ImageSkia image, float scale_factor) { … }
}