-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calculate job height on server instead of leaving it to the client
- Loading branch information
Showing
5 changed files
with
95 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/jobs/migrations/0004_remove_imageconversionjob_aspect_ratio_denominator_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 5.1.2 on 2024-11-04 16:04 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('jobs', '0003_alter_basejob_useragent_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='imageconversionjob', | ||
name='aspect_ratio_denominator', | ||
), | ||
migrations.RemoveField( | ||
model_name='imageconversionjob', | ||
name='aspect_ratio_numerator', | ||
), | ||
migrations.AddField( | ||
model_name='imageconversionjob', | ||
name='height', | ||
field=models.PositiveIntegerField(default=100, help_text='The desired height of the converted image.'), | ||
preserve_default=False, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
src/jobs/migrations/0005_imageconversionjob_custom_aspect_ratio.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.1.2 on 2024-11-04 16:40 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('jobs', '0004_remove_imageconversionjob_aspect_ratio_denominator_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='imageconversionjob', | ||
name='custom_aspect_ratio', | ||
field=models.BooleanField(default=False, help_text='True if this job needs cropping to a custom AR, False if no crop is needed.'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters