blob: 74346cc988cf7f9d8547e5284ec3ddf8e6f70b89 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <UIKit/UIKit.h>
Scale down the image if it's too large so it doesn't take too much space
to store or too much data to upload.
This is taken from Google Toolbox for Mac. Extensions should not have
too many dependencies, so this is reproduced here. This should not be used
outside of extensions. Instead, use the simpler version in
UIImage* ResizeImageForSearchByImage(UIImage* image);