Open Bug 1973245 Opened 1 year ago Updated 1 year ago

Remove unnecessary avatar svg files

Categories

(Toolkit :: Startup and Profile System, defect, P2)

defect

Tracking

()

ASSIGNED

People

(Reporter: niklas, Assigned: niklas)

References

Details

(Whiteboard: [fidefe-profile-management])

In bug 1966951 we added 4 sizes of svgs for each avatar. We have now confirmed that we only need 2 sizes for each avatar. We should remove the icons that we no longer needed and update references to only use one of the two sizes.

Severity: -- → S3
Priority: -- → P3

One thing to add on this follow-up bug is to also spend the time to refactor the file naming of the assets we plan to use. Ideally we would fit to the pardigm of {name}-{size}.svg instead of {size}_{name}.svg

I would reccomend using this bash script to make things a bit easier during the process:

for size in 16 20 48 80; do for file in ${size}_*.svg; do if [ -f "$file" ]; then name=$(echo "$file" | sed "s/^${size}_//;s/\.svg$//"); mv "$file" "${name}-${size}.svg"; echo "Renamed: $file -> ${name}-${size}.svg"; fi; done; done

This is a result from the discussion of bug 1966951 in the review for it.

Priority: P3 → P2
You need to log in before you can comment on or make changes to this bug.