Skip to content

[EC203] Detect unoptimized image format - GCI203 - #47

Draft
ValentinLeTallec wants to merge 3 commits into
green-code-initiative:mainfrom
ValentinLeTallec:203-java
Draft

[EC203] Detect unoptimized image format - GCI203#47
ValentinLeTallec wants to merge 3 commits into
green-code-initiative:mainfrom
ValentinLeTallec:203-java

Conversation

@ValentinLeTallec

@ValentinLeTallec ValentinLeTallec commented May 30, 2024

Copy link
Copy Markdown

@dedece35
dedece35 requested a review from jycr June 13, 2024 19:35
@dedece35

Copy link
Copy Markdown
Member

HI @jycr, as SVG expert, are you OK with this implementation ?
for me, all seems OK but if we accept this PR, all images except SVG will be prohibited. Is it that we want ?

@ValentinLeTallec

Copy link
Copy Markdown
Author

For info, I took inspiration from the python implementation of the rule, which use the same exclusion list.
As such, if change are necessary on the java rule implementation, then the python implementation will probably also need to be changed.

@jycr

jycr commented Jun 13, 2024

Copy link
Copy Markdown
Contributor

@dedece35:

all images except SVG will be prohibited. Is it that we want ?

see my comment: green-code-initiative/creedengo-rules-specifications#153 (comment)

@dedece35

Copy link
Copy Markdown
Member

@dedece35:

all images except SVG will be prohibited. Is it that we want ?

see my comment: green-code-initiative/ecoCode#153 (comment)

I understand that, we can't make this rule as a global rule ! Thus, we can't accept it. OK with it ?

@utarwyn

utarwyn commented Jun 14, 2024

Copy link
Copy Markdown
Member

Hello,
I'd also like to comment because this rule exists in the repository (EC31) and was originally targeting React/HTML. It authorizes various image formats to mitigate this problem. There's no need to recreate a new EC203 rule.

Please consult the documentation here and the PR green-code-initiative/creedengo-rules-specifications#269.

I see that another PR has been opened for this rule: #52, maybe we can merge both works?

@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Jul 15, 2024
@dedece35

Copy link
Copy Markdown
Member

Hello, I'd also like to comment because this rule exists in the repository (EC31) and was originally targeting React/HTML. It authorizes various image formats to mitigate this problem. There's no need to recreate a new EC203 rule.

Please consult the documentation here and the PR green-code-initiative/ecoCode#269.

I see that another PR has been opened for this rule: #52, maybe we can merge both works?

Hi @utarwyn,
I absolutely agree with you ... but EC31 is declared on ecocode-rules-specifications but not yet implemented on javascript plugin. Am I right ? I found this PR green-code-initiative/creedengo-javascript#46 ... is it in review ?

I think we can wait this PR 46 and thhen, we will do the work to merge EC203 into EC31 (for Python) and review the current PR next.
What do you think @utarwyn about it ?
Do you think you can review quickly this javascript PR ?

@dedece35
dedece35 requested review from dedece35 and utarwyn August 11, 2024 22:04
@github-actions github-actions Bot removed the stale label Aug 12, 2024
@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Sep 11, 2024
@dedece35
dedece35 marked this pull request as draft January 5, 2025 21:49
@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@dedece35 dedece35 moved this from Backlog to Review in progress in Hackathon Kanban - JAVA May 2, 2026
@dedece35 dedece35 changed the title [EC203] Detect unoptimized image format [EC203] Detect unoptimized image format - GCI203 May 5, 2026
@github-actions github-actions Bot removed the stale label May 6, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has no activity for 30 days.
Please add a comment if you want to keep the issue open. Thank you for your contributions!

@github-actions github-actions Bot added the stale label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Review in progress

Development

Successfully merging this pull request may close these issues.

4 participants