return HttpResponseRedirect('/login/')
>
> Hey ,
> I am using the above method and able to resize the image but it is only
> taking JPEG format and i want other format also. Can u please suggest
> *imageresize.save( 'abc.JPEG', quality=75) it can take three
> pa
te:
> Hi,
>
> Again, you should really put this in your database model instead of in the
> view. If you use your overriden save function, you would be able to add
> this there. Also, you check if the image is not an L or RGB image (don't
> know what L is) and resize it ONLY
gards,
Andréas
2015-03-25 8:26 GMT+01:00 Akash Patni :
> For image resizing i have used the following function*(in bold).*Is it
> right??
>
> def edit_profile(request):
>
> if 'username' in request.session:
> #user_id=request.POST.get('id')
>
For image resizing i have used the following function*(in bold).*Is it
right??
def edit_profile(request):
if 'username' in request.session:
#user_id=request.POST.get('id')
user_id=request.GET.get('id')
usr_obj=User.objects.g
You can use Pillow to change the size of the images yourself. That is
however pretty complicated and IMO not really worth the effort. I would go
with easy_thumbnails.
Regards,
Andréas
2015-03-24 14:04 GMT+01:00 Akash Patni :
> can you please suggest me another answer...
>
> On Tue, Mar 24, 2015
can you please suggest me another answer...
On Tue, Mar 24, 2015 at 6:13 PM, Andreas Kuhne
wrote:
> Hi,
>
> Check out the easy_thumbnails plugin.
> http://easy-thumbnails.readthedocs.org/en/2.1/
>
> It automatically resizes all images to the size you want if you use it
> correctly.
>
> Regards,
Hi,
Check out the easy_thumbnails plugin.
http://easy-thumbnails.readthedocs.org/en/2.1/
It automatically resizes all images to the size you want if you use it
correctly.
Regards,
Andréas
2015-03-24 11:07 GMT+01:00 :
> Hi..
> can anyone please tell me how to resize the uploaded image
> Th
Hi..
can anyone please tell me how to resize the uploaded image
This is my model
class User(models.Model):
first_name=models.CharField(
verbose_name = "First Name *",max_length=20,blank=False)
last_name=models.CharField(verbose_name = "Last Name
*",max_length=20,blank=False)
userna
Hi All,
Can Any one help me to resize all types of (like jpeg,gif ect)
images.
This code only useful to upload Jpeg images only. When I upload a
image 'thumbnail' folder has two images and when I delete the image only
one image is deleted from folder(Resized image or thumbn
On Sat, Jul 12, 2008 at 6:37 AM, TheBoff <[EMAIL PROTECTED]> wrote:
>
> Photologue is perhaps a bit heavyweight for my current purposes,
> although it looks like an extremely impressive bit of kit, and were I
> to make a dedicated photo gallery etc app with django, I would
> certainly use it.
Th
In case other's have the same need, one of the features of the
upcoming 2.0 release of Photologue is that all resizing, cacheing,
(etc.) behaviors have be put in an abstract base class. When you
subclass Photologue.models.ImageModel with your own models they
inherit the basic functionailty of a Ph
I've actually realised I've been an idiot: seen as models are
subclasses of models.Model, I should be able to just call
model.Model.save() from within the custom save method! And my other
idea wouldn't work if the image were changed.
On Jul 12, 12:37 pm, TheBoff <[EMAIL PROTECTED]> wrote:
> Wow:
Wow: thanks for all the replies guys!
Photologue is perhaps a bit heavyweight for my current purposes,
although it looks like an extremely impressive bit of kit, and were I
to make a dedicated photo gallery etc app with django, I would
certainly use it.
Embedding something in the save method see
You could also use django-photologue. Its quite powerful and very
useful in templates:
http://code.google.com/p/django-photologue/
Cheers,
Dana
On Jul 11, 12:47 am, "Ben Ford" <[EMAIL PROTECTED]> wrote:
> Or you could have a look at google appengine for your image storage. They
> have an picass
Or you could have a look at google appengine for your image storage. They
have an picassa like API that would allow you to do lots of stuff to your
images on the fly and you wouldn't pay for any of the processor cost (or
storage if you're under 500M). Just a thought.
Ben
2008/7/11 Eric Abrahamsen
It's intensive, but not prohibitively so. I've used a few setups where
large image files were uploaded and, depending on the options, two or
even three different versions of the image are created in the save()
method. The server has yet to explode. Try poking through some of
these snippets
To jump straight in to the question:
I'm wrinting a website using the automatic admin interface, and am
wondering if there's any way to create a thumbnail automatically upon
the upload of the image.
I know I could set it as a property, and use PIL to do it on the fly
(well I assume I could, I ha
17 matches
Mail list logo