Skip to content

Commit

Permalink
fix extension
Browse files Browse the repository at this point in the history
  • Loading branch information
reschandreas committed Sep 25, 2024
1 parent 25507ba commit 156cb69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions helm/ravatar/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ spec:
- name: {{ .Release.Name }}-resized-images
mountPath: {{ .Values.ravatar.generatedImagesPath }}
{{- end }}
{{ if .Values.volumes }}
{{- toYaml .Values.volumes | nindent 12 }}
{{ if .Values.volumeMounts }}
{{- toYaml .Values.volumeMounts | nindent 12 }}
{{- end }}
volumes:
- name: {{ .Release.Name }}-data-source
Expand Down
6 changes: 3 additions & 3 deletions src/image_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ use std::{fs, vec};

pub fn resize_default(config: &Config) {
create_directory(Path::new(&config.images));
let extension = config.mm_extension.clone();
let binding = build_path(
vec![config.images.clone(), 1024.to_string(), "mm".to_string()],
Some(config.mm_extension.clone()),
Some(extension.clone()),
);
let path = binding.as_path();
let binding = build_path(
vec!["default".to_string(), "mm".to_string()],
Some(config.mm_extension.clone()),
Some(extension.clone()),
);
let default = binding.as_path();
if !needs_update(default, path) {
log::debug!("skipping default");
return;
}
let sizes: Vec<u32> = vec![16, 32, 48, 64, 80, 96, 128, 256, 512, 1024];
let extension = config.extension.clone();
let image_path = config.images.clone();
for name in vec!["mm", "default"] {
let source_binding = build_path(
Expand Down

0 comments on commit 156cb69

Please sign in to comment.