跳到主要内容

Picture editor

Pictures on Drive — files in PNG, JPG, WebP and GIF — open in an editor right in the browser. In it you crop, rotate and flip a picture, correct its color, apply a filter, draw on it, add a watermark and change its size. Everything you do stays in the window until you press 保存: only then does the edited picture go back to Drive, as a new version of the same file.

How to edit a picture​

  1. Open QubDrive and double-click a picture file (or choose it and press Enter or Space). The picture opens in the editor in the same window. A link to the picture — the address #/drive/ followed by the picture's identifier — opens the editor at once.
  2. Pick a tab and a tool, and make the changes — see The tabs below. The picture changes at once, but only in the window.
  3. Press 保存 in the top bar.

The editor opens on the 微调 tab with the 亮度 tool selected.

While there are edits that are not saved, the header of the file shows 未保存; after saving it shows 已保存. If you try to leave the file with unsaved edits, Drive asks for confirmation first.

Good to know:

  • You see the tools only when you may edit the file and no colleague holds it at the moment (the header then says … 正在编辑此文档; the dots stand for the name). If you may only look at the file, or you opened an earlier version from the history, the editor shows the picture and nothing else.
  • A picture you are not allowed to download (a ban set in the sharing dialog, see Sharing files and documents) does not open in the editor: Drive returns you to the file list.
  • Pictures of other formats, for example SVG, are not opened in the editor: a double click downloads them. The same holds for a picture uploaded with more than 40 million points in area or more than 65 535 points on a side: it stays an ordinary file.

The top bar​

From the left:

  • Only on a narrow screen (up to 760 pixels): the tabs are hidden, and a menu button stands first, at the far left of the top bar; it opens the list of tabs under the name 菜单.
  • 保存 — writes the edited picture back to Drive, see Saving.
  • In the middle, a caption such as 800 x 600 px — the size of the picture as it will be saved, with the crop, the turn and the new size taken into account. Its hint is 保存的图片尺寸(宽×高).
  • The button with the hint 显示原图: press and hold it to see the picture as it was when you opened it; let go and your edits come back. The button works only when there is something to compare.
  • The zoom: the buttons with the hints 缩小 and 放大 and the current percentage between them. A click on the percentage (its hint is 缩放菜单) opens a menu: 适应窗口, 实际大小(100%), 25 %, 50 %, 75 %, 125 %, 170 %, 300 %, 500 % and 1000 %. While the 裁切 tool is selected, the zoom is unavailable.
  • At the right, three buttons: 重置所有更改, 撤销上一步操作 and 重做已撤销的操作. Undo and redo work step by step and are active only when there is a step to take back or to repeat.

The reset button throws away all edits made since the picture was opened. It asks first: the window 警告 with the text 放弃更改?更改将不会保存。 and the buttons 确认 and 取消. The button is inactive until the first edit.

The tabs​

The tabs stand in a column at the left: 裁剪, 微调, 筛选, 水印, 标注 and 调整大小. Under the picture are the tools of the chosen tab; when a tool has settings, they stand in a row above the tools.

The Adjust tab​

Four tools:

  • 裁切 — a click opens a menu of frame shapes: 自定义 (a free frame), 原始 (a frame in the proportion of the picture), 横向 (16:9), 纵向 (9:16) and 椭圆 (an oval frame — the picture is cut along the oval). After the choice a frame appears over the picture; the part outside it is blurred and darkened, and it is cut off when you save. Move the frame by dragging it and change its size by the handles; with the free frame and the oval the handles are on every side and corner, with the other shapes only on the corners, so that the proportion stays. The button now shows the name of the chosen shape. When a change of the frame makes it smaller than the size set on the 调整大小 tab while it was not smaller before, a warning appears: 所选裁剪区域小于已设置的尺寸,画质可能会下降
  • 旋转 — two buttons turn the picture by 90 degrees, counterclockwise and clockwise; the slider turns it by any angle from −180 to 180 degrees.
  • 水平翻转 and 垂直翻转 — mirror the picture horizontally or vertically at one click. After the click the name of the button becomes 取消水平翻转 or 取消垂直翻转, and the next click returns the picture.

The Finetune tab​

Five tools, each with a slider and a number field beside it:

  • 亮度 — the slider 亮度.
  • 对比度 — the slider 对比度.
  • 色相和饱和度 — three sliders: 色相, 饱和度 and 明度.
  • 模糊 — the slider 模糊.
  • 色温 — the slider 色温.

The Filters tab​

筛选 is a strip of ready-made filters, each shown on a small copy of your picture. A click applies the filter to the whole picture; the filter Original removes it. Only one filter works at a time. Four filters are named in the interface language — Invert, Black & White, Sepia and Solarize; the others carry the names of the filters of Instagram, such as Clarendon, and are written the same in every language.

The Annotate tab​

The tab holds eight tools: 文本, 图片, 矩形, 椭圆, 多边形, 画笔, 直线 and 箭头.

How to add an element: pick the tool, press the mouse button over the picture and drag; the element appears when you let go. With 画笔 you draw freehand while the button is held. Holding Shift while you drag makes a square out of the rectangle, a circle out of the oval, and keeps a line or an arrow horizontal or vertical. The 图片 tool is added by its own button, see below.

Click an element to select it: drag the element to move it, and handles around it resize and turn it. Under the selected element are two icon buttons — duplicate and delete. The settings of the selected element stand in the row above the tools.

ToolWhat it addsIts settings
文本A text. A frame filled with a sample text appears; double-click the text to change it: Enter accepts the text, Shift + Enter starts a new line, Esc leaves the text as it was.The fill color, the font list (named 字体: Arial, Tahoma, Sans-serif or Comic Sans), the field 大小, the bold and italic buttons, 文本对齐方式, 文本间距 and the common settings below.
图片Another picture on top of yours.The button + 添加图片 (hint 选择要添加的图片…) and the common settings below, except the fill color.
矩形A rectangle.The fill color, 圆角半径 and the common settings below.
椭圆An oval.The fill color and the common settings below.
多边形A regular polygon.The fill color, 边数 (from 3 to 25) and the common settings below, except the position.
画笔A freehand line.不透明度, 描边 and 阴影.
直线A straight line.不透明度, 描边 and 阴影.
箭头An arrow.不透明度, 描边 and 阴影.

The button + 添加图片 opens the file choice at once. You may pick several pictures: each is placed in the middle of the picture and, if it is larger, scaled down to fit. A file that is not a picture is not added; a notice names it: the file names followed by 不是图片, (for several files 不是图片,) and 无法上传. A picture that could not be read gives the notice 无法上传图片。

The common settings of the elements are small icon buttons; the hint of each is its name, and a click opens a window:

  • the color swatch at the left of the row — the fill color (the picture, the line, the arrow and the freehand line have none);
  • 不透明度 — a window with the slider 透明度 in percent: at 100 % the element is fully opaque, the lower the value, the more see-through it is;
  • 描边 — the width of the outline in pixels and the outline color;
  • 阴影 — the window 阴影 with the sliders 水平 and 垂直 (the offset in pixels), 模糊 and 不透明度 (in percent) and the shadow color;
  • 位置 — the window 位置 with nine buttons — eight arrows and a dot in the middle: put the element at a corner, at the middle of a side or at the center of the picture.

The settings that only a text has: bold and italic are two buttons that switch the style on and off; 文本对齐方式 opens a window with three buttons — the text at the left, at the center, at the right; 文本间距 opens a window with two sliders in pixels, 字间距 and 行距, each from 0 to 100.

The Watermark tab​

A watermark is one picture or one text over the whole picture. The tab has the button + 添加水印 (hint 选择水印类型; on a very narrow screen the button reads +). A click opens a menu of two items:

  • 上传水印 — pick a picture file; it is placed in the middle of the picture. If the file cannot be read, a notice says 无法加载图片。
  • 添加为文本 — a text is placed in the middle of the picture; double-click it to change the words, as with the text of the Annotate tab.

There is one watermark at a time: adding a new one replaces the old one. The watermark is selected at once, and its settings stand above the tools: for a picture — the common settings of the elements (without the fill color), for a text — also the text settings (font, size, bold, italic, alignment, spacings). Both have one more button, 边距: a window with the slider 边距 in pixels, from 0 to 100.

The Resize tab​

The tab sets the size of the saved picture, in pixels: the fields 宽度 (hint 以像素为单位的宽度) and 高度 (hint 以像素为单位的高度). Between them is the button with the hint 锁定宽高比. While the lock is closed (it is closed when the picture opens), a change in one field recalculates the other so that the proportion stays; click the lock and the two fields become independent. The button with the reset icon, at the right of the fields, returns the original size; it is active only after the size was changed. A field you clear shows the hint Width or Height, in English in every interface language.

Saving​

保存 in the top bar writes everything you did on all tabs — the frame, the turn, the mirror, the color, the filter, the annotations, the watermark and the new size. While it works, the editor is covered with 保存中….

  • The picture stays in the same file, under the same title and in the same place, with the same sharing.
  • The picture is saved as WebP, whatever it was before; the download name of the file gets the extension .webp, while the title in Drive does not change.
  • The version of the picture that was there before is kept in the history of the file: each save adds one version. The history opens from the "⋮" menu in the header of the file (for screen readers the menu is named 文档操作), the item 历史记录. An earlier version opens in the same editor, without tools, and 恢复此版本 returns it. More — in Documents, spreadsheets and pages.
  • If a colleague saved the same picture while you were editing, your save still goes through, and the header shows the mark 下方叠加了他人的编辑; the version it replaced stays in the history.

What's next​