Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
dd4715f7
Commit
dd4715f7
authored
Jul 29, 2020
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image: use smaller sRGB ICC profile.
parent
d41ee876
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_base/DocumentTemplateItem/portal_components/document.erp5.Image.py
...mentTemplateItem/portal_components/document.erp5.Image.py
+2
-1
product/ERP5/misc/sRGB-v2-magic.icc
product/ERP5/misc/sRGB-v2-magic.icc
+0
-0
product/ERP5/misc/sRGB.icc
product/ERP5/misc/sRGB.icc
+0
-0
No files found.
bt5/erp5_base/DocumentTemplateItem/portal_components/document.erp5.Image.py
View file @
dd4715f7
...
...
@@ -339,8 +339,9 @@ class Image(TextConvertableMixin, File, OFSImage):
crop
=
False
,
):
"""Resize and resample photo."""
# https://github.com/saucecontrol/Compact-ICC-Profiles
icc_profile
=
os
.
path
.
join
(
os
.
path
.
dirname
(
Products
.
ERP5
.
__file__
),
'misc'
,
'sRGB.icc'
)
'misc'
,
'sRGB
-v2-magic
.icc'
)
parameter_list
=
[
'convert'
,
'-colorspace'
,
'sRGB'
,
'-depth'
,
'8'
,
'-profile'
,
icc_profile
]
if
crop
:
...
...
product/ERP5/misc/sRGB-v2-magic.icc
0 → 100644
View file @
dd4715f7
File added
product/ERP5/misc/sRGB.icc
deleted
100644 → 0
View file @
d41ee876
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment