Clarify the difference between ImageMagick::setColorspace() and ImageMagick::setImageColorspace()
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu bằng cách so sánh các trang hướng dẫn của Imagick::setColorspace() và Imagick::setImageColorspace(), sau đó đọc trang Imagick::transformImageColorspace() được liên kết và hành vi bên dưới của extension. Làm rõ sự khác biệt hoặc ghi rõ mối quan hệ alias trên cả hai trang, đồng thời thêm các ví dụ cho thấy khi nào nên sử dụng từng phương thức.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
From manual page: https://php.net/imagick.setimagecolorspace
By reading
https://www.php.net/manual/en/imagick.setcolorspace.php and
https://www.php.net/manual/en/imagick.setimagecolorspace.php
I honestly can't tell the differene between the two, when I should use one and when the other.
There's no example for either of them. (BTW there shoudl ALWAYS be examples, every single page of the documentation should have examples)
The descriptions are slightly different:
public Imagick::setColorspace(int $COLORSPACE): bool
Sets the global colorspace value for the object.
vs
public Imagick::setImageColorspace(int $colorspace): bool
Sets the image colorspace. This method should be used when creating new images. To change the colorspace of an existing image, you should use Imagick::transformImageColorspace().
but it's not clear what the difference is between the "global workspace for the object" and "the image colorspace".
This difference should be clarified in both pages. Or if they are actually the same thing, it should be explicitly stated that one is an alias for the other.
- Ngôn ngữ chính
- XML
- Star
- 4
- Fork
- 8
- Merge trung bình
- 1 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của php/doc-extensions
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
php/doc-extensions#23 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
php/doc-extensions#28 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
php/doc-extensions#22 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
php/doc-extensions#13 · 11 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
php/doc-extensions#27 ·
Tất cả issue của php/doc-extensions
Issue tương tự
-
Area: PDF support
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
orbeon/orbeon-forms#8053 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
JWhite212/SignalLadder#213 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
aws-samples/sample-per-model-bedrock#782 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve fmudesign documentationĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 3 ngày
-
lesson-submission pending-review
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 77/100
Ikalus1988/MisakaNet#4529 ·
Maintainer thường phản hồi trong vòng 1 ngày