mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
Add option to auto fix jpg orientation
This commit is contained in:
@@ -156,6 +156,10 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if vs.FixJpgOrientation && strings.HasSuffix(string(needle.Name), ".jpg") {
|
||||
needle.Data = images.FixJpgOrientation(needle.Data)
|
||||
}
|
||||
|
||||
ret := operation.UploadResult{}
|
||||
size, errorStatus := topology.ReplicatedWrite(vs.masterNode, vs.store, volumeId, needle, r)
|
||||
if errorStatus == "" {
|
||||
|
Reference in New Issue
Block a user