1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

Image zoom rotate (#7425)

* [image file view] added a zoomer(enable users to zoom in/out the image)

* [image file view] added 'rotate'(rotate the image in counter-clockwise direction and save it)

* [image file view] fixup

* [image file view] keep the 'prev/next' icons displayed on top of the image which is zoomed in

* [image file view] improved the display of the 'image saved' tip

* [image file view] don't offer 'zoom in/out' & 'rotate' for images with errors

* [image file view] don't offer 'rotate' for PSD & HEIC files

* [image file view] enable HEIC files to be viewed online
This commit is contained in:
llj
2025-02-08 10:27:34 +08:00
committed by GitHub
parent d65e86731e
commit 3d7b8b3a6b
7 changed files with 161 additions and 10 deletions

View File

@@ -25,8 +25,8 @@ const propTypes = {
isSaving: PropTypes.bool,
needSave: PropTypes.bool,
isOnlyofficeFile: PropTypes.bool,
participants: PropTypes.array,
onParticipantsChange: PropTypes.func
setImageScale: PropTypes.func,
rotateImage: PropTypes.func
};
const { isStarred, isLocked, lockedByMe,
@@ -143,6 +143,8 @@ class FileView extends React.Component {
needSave={this.props.needSave}
toggleLockFile={this.toggleLockFile}
toggleDetailsPanel={this.toggleDetailsPanel}
setImageScale={this.props.setImageScale}
rotateImage={this.props.rotateImage}
/>
}
</div>